We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adad679 commit 073e3f4Copy full SHA for 073e3f4
src/DB.php
@@ -357,11 +357,16 @@ private function debug() {
357
358
$backtrace = debug_backtrace();
359
if (!empty($backtrace)) {
360
+ $backtraces = [];
361
foreach ($backtrace as $info) {
362
if (isset($info['file']) && $info['file'] != __FILE__) {
- $error['Backtrace'] = $info['file'] . ' at line ' . $info['line'];
363
+ $backtraces[] = $info['file'] . ' at line ' . $info['line'];
364
}
365
366
+
367
+ if ($backtraces) {
368
+ $error['Backtrace'] = implode(PHP_EOL, $backtraces);
369
+ }
370
371
372
$msg = 'SQL Error' . PHP_EOL . str_repeat('-', 50);
0 commit comments