Mercurial > hg > fapweb
diff msitegen.inc.php @ 210:cafc05949a19
Work on error handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 17 Nov 2013 20:35:52 +0200 |
parents | 8985d2bdb29b |
children | 5bae42020034 |
line wrap: on
line diff
--- a/msitegen.inc.php Sun Nov 17 20:20:54 2013 +0200 +++ b/msitegen.inc.php Sun Nov 17 20:35:52 2013 +0200 @@ -7,7 +7,7 @@ // Globals and definitions $errorSet = FALSE; -$errorMsg = ""; +$errorMsgs = array(); $statusSet = 0; $statusMsg = ""; @@ -34,9 +34,9 @@ function stError($msg) { - global $errorSet, $errorMsg; + global $errorSet, $errorMsgs; $errorSet = TRUE; - $errorMsg .= "<li>".$msg."</li>\n"; + $errorMsgs[] = $msg; }