Skip to content

Commit

Permalink
Simplifies exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrrill committed Dec 5, 2014
1 parent 3f92301 commit b8960d7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions classes/Core/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ class RuntimeException extends \Exception
{
public static function handler($e)
{
$msg = $e->getMessage().PHP_EOL.$e->getTrace().PHP_EOL;

fwrite(STDOUT, $msg);
fwrite(STDERR, $msg);

throw $e;
print '<pre>'.$e->getMessage().':'.$e->getLine().PHP_EOL;
print_r($e->getTrace());
throw new \Exception;
}
}

0 comments on commit b8960d7

Please sign in to comment.