Skip to content

Commit 2341841

Browse files
committed
fix: Show Exception on Initialization
1 parent bd6500f commit 2341841

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webfiori/framework/App.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,8 @@ private static function call($func) {
498498
} catch (Exception $ex) {
499499
if (self::getRunner()->isCLI()) {
500500
printf("WARNING: ".$ex->getMessage().' at '.$ex->getFile().':'.$ex->getLine()."\n");
501+
} else {
502+
throw new InitializationException($ex->getMessage(), $ex->getCode(), $ex);
501503
}
502504
}
503505
}

0 commit comments

Comments
 (0)