Added more informative error messages
This commit is contained in:
parent
2360a9d3a5
commit
30f450df66
@ -11,7 +11,7 @@ try
|
|||||||
}
|
}
|
||||||
catch (PDOException $e)
|
catch (PDOException $e)
|
||||||
{
|
{
|
||||||
header('Status: 500 Internal Server Error');
|
header('Status: 500 Internal Server Error (DB)');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,7 +21,8 @@ try
|
|||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
header('Status: 500 Internal Server Error');
|
header('Status: 500 Internal Server Error (Backend)');
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
jsonRPCServer::handle($smsSender);
|
jsonRPCServer::handle($smsSender);
|
Loading…
Reference in New Issue
Block a user