# HG changeset patch # User Matti Hamalainen # Date 1709923653 -7200 # Node ID ee898a9344e72b51f993f511cb698c8b3956c36d # Parent 5b83987cd6ab6cf195d0d4d0b4b09593afa553a0 Add error message handling to reformatter. diff -r 5b83987cd6ab -r ee898a9344e7 src/reformat_wizards.php --- a/src/reformat_wizards.php Fri Mar 08 20:17:06 2024 +0200 +++ b/src/reformat_wizards.php Fri Mar 08 20:47:33 2024 +0200 @@ -95,5 +95,13 @@ $table = mpReadWizInfoFiles(); mpWriteWizInfoFile($argv[1], $table); +if ($errorSet) +{ + echo implode("", array_map( + function ($item) + { + return "ERROR: ".$item."\n"; + }, $errorMsgs)); +} ?>