mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fatal errors should always return false
This allows PHP to set the exit code on fatals.
This commit is contained in:
parent
eed2293f31
commit
cc9603d6a2
@ -296,10 +296,11 @@ class Debug {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if(Director::isDev() || Director::is_cli()) {
|
if(Director::isDev() || Director::is_cli()) {
|
||||||
return self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Error");
|
self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Error");
|
||||||
} else {
|
} else {
|
||||||
return self::friendlyError();
|
self::friendlyError();
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user