mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 01:52:22 +03:00
Improved AJAX error handling.
This commit is contained in:
parent
a770a69660
commit
e252307e66
2 changed files with 4 additions and 4 deletions
|
@ -346,7 +346,7 @@ var GeneralFunctions = {
|
|||
ajaxFailureHandler: function(jqxhr, textStatus, errorThrown) {
|
||||
var exceptions = [
|
||||
{
|
||||
message: 'AJAX Error: ' + textStatus
|
||||
message: 'AJAX Error: ' + errorThrown
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -61,9 +61,9 @@ if (defined('ENVIRONMENT'))
|
|||
{
|
||||
case 'development':
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
break;
|
||||
|
||||
case 'testing':
|
||||
case 'production':
|
||||
error_reporting(0);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue