Mercurial > hg > batmud > maputils
changeset 2755:ee898a9344e7
Add error message handling to reformatter.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Mar 2024 20:47:33 +0200 |
parents | 5b83987cd6ab |
children | c503c80d2acf |
files | src/reformat_wizards.php |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)); +} ?>