Skip to content

Commit 016181a

Browse files
ENGCOM-4696: fatalErrorHandler returns 500 only on fatal errors #22200
- Merge Pull Request #22200 from wexo-team/magento2-1:patch-1 - Merged commits: 1. 9675984
2 parents 5791131 + 9675984 commit 016181a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pub/health_check.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
function fatalErrorHandler()
7171
{
7272
$error = error_get_last();
73-
if ($error !== null) {
73+
if ($error !== null && $error['type'] === E_ERROR) {
7474
http_response_code(500);
7575
}
7676
}

0 commit comments

Comments
 (0)