mirror of
https://github.com/php/web-master.git
synced 2026-03-23 23:32:16 +01:00
Show error message when it fails
This commit is contained in:
@@ -20,6 +20,7 @@ function error($text, $status)
|
||||
header("HTTP/1.0 401 Unauthorized");
|
||||
break;
|
||||
}
|
||||
echo json_encode(["error" => $text]);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user