Infer file/line location in rcube::raise_error() from backtrace (#9422)

* \n\s+'file' => __FILE__,

* \n\s+'line' => __LINE__,

* 'line' => __LINE__, 'file' => __FILE__,

* 'file' => __FILE__, 'line' => __LINE__,

* rest

* more

* improve cs

* more cs

* revert rcube_utils::preg_error changes

* impl file/line from backtrace

* Revert "revert rcube_utils::preg_error changes"
This commit is contained in:
Michael Voříšek
2024-04-21 11:48:35 +02:00
committed by GitHub
parent ff59ade31a
commit a30e0ad438
63 changed files with 127 additions and 210 deletions

View File

@@ -357,7 +357,7 @@ class rcmail_attachment_handler
header('Location: ' . $_SERVER['REQUEST_URI'] . '&_redirected=1');
} else {
rcube::raise_error([
'code' => 500, 'file' => __FILE__, 'line' => __LINE__,
'code' => 500,
'message' => 'Unable to get/display message part. IMAP connection error',
], true, true);
}