Skip to content

Commit b10393e

Browse files
committed
Add trace_offset to error handler
Using the trace_offset will allow wrapped errors to have the correct code and context displayed. Refs #718
1 parent 159e808 commit b10393e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

config/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function ($code, $message, $file, $line, $context = null) use (&$previousHandler
3939
return;
4040
}
4141
if ($previousHandler) {
42+
$context['_trace_offset'] = 1;
4243
return $previousHandler($code, $message, $file, $line, $context);
4344
}
4445
},

0 commit comments

Comments
 (0)