From 644768fb86c424baf67bdb4de6d0328eeb648de5 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Fri, 28 Oct 2022 23:52:11 -0700 Subject: [PATCH] Automatically strip BB_PATH_ROOT from backtrace --- src/bb-library/Box/Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Box/Exception.php b/src/bb-library/Box/Exception.php index b85b15b61..11606bebd 100644 --- a/src/bb-library/Box/Exception.php +++ b/src/bb-library/Box/Exception.php @@ -64,7 +64,7 @@ class Box_Exception extends Exception $entry_file = 'NO_FILE'; if (array_key_exists('file', $entry)) { - $entry_file = $entry['file']; + $entry_file = str_replace(BB_PATH_ROOT, '' , $entry['file']); } $entry_line = 'NO_LINE'; if (array_key_exists('line', $entry)) {