Skip to content
Snippets Groups Projects
Commit c513ca54 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Add error filename/number and context when available to ease debugging.

parent 41861a80
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,8 @@ function SimpleSAML_error_handler($errno, $errstr, $errfile = null, $errline = 0 ...@@ -53,7 +53,8 @@ function SimpleSAML_error_handler($errno, $errstr, $errfile = null, $errline = 0
} }
// show an error with a full backtrace // show an error with a full backtrace
$e = new \SimpleSAML\Error\Exception('Error '.$errno.' - '.$errstr); $context = (is_null($errfile)?'':" at $errfile:$errline") . (is_null($errcontext)?'':" $errcontext");
$e = new \SimpleSAML\Error\Exception('Error '.$errno.' - '.$errstr . $context);
$e->logError(); $e->logError();
// resume normal error processing // resume normal error processing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment