Added try-catch to shell/extendedgitgraph_refresh
This commit is contained in:
parent
3767fd3eec
commit
f7688a224b
@ -9,6 +9,8 @@ ini_set("display_errors", 1);
|
||||
ini_set("display_startup_errors", 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
try {
|
||||
|
||||
echo "\n";
|
||||
echo "==================================== Init ====================================\n";
|
||||
echo "\n";
|
||||
@ -64,3 +66,20 @@ echo "\n";
|
||||
|
||||
echo "Done.\n";
|
||||
exit(0);
|
||||
|
||||
} catch (Throwable $throwable) {
|
||||
|
||||
echo "";
|
||||
echo "[!] Caught Eception";
|
||||
echo "";
|
||||
|
||||
echo $throwable->getMessage();
|
||||
echo $throwable->getFile() . " : " . $throwable->getLine();
|
||||
echo "";
|
||||
echo $throwable->getTraceAsString();
|
||||
|
||||
echo "";
|
||||
echo "";
|
||||
|
||||
throw $throwable;
|
||||
}
|
Loading…
Reference in New Issue
Block a user