Commit 32f34b60 by Alexander Makarov

error handler now works properly with @

parent 4502d5c6
...@@ -77,7 +77,9 @@ class ErrorHandler extends ApplicationComponent ...@@ -77,7 +77,9 @@ class ErrorHandler extends ApplicationComponent
*/ */
public function handleError($code, $message, $file, $line) public function handleError($code, $message, $file, $line)
{ {
throw new \ErrorException($message, 0, $code, $file, $line); if(error_reporting()!==0) {
throw new \ErrorException($message, 0, $code, $file, $line);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment