diff --git a/src/assets/js/general_functions.js b/src/assets/js/general_functions.js index 0a845787..e2199745 100644 --- a/src/assets/js/general_functions.js +++ b/src/assets/js/general_functions.js @@ -346,7 +346,7 @@ var GeneralFunctions = { ajaxFailureHandler: function(jqxhr, textStatus, errorThrown) { var exceptions = [ { - message: 'AJAX Error: ' + textStatus + message: 'AJAX Error: ' + errorThrown } ]; diff --git a/src/index.php b/src/index.php index 5a4bbaf1..6d79f162 100644 --- a/src/index.php +++ b/src/index.php @@ -61,12 +61,12 @@ if (defined('ENVIRONMENT')) { case 'development': error_reporting(E_ALL); - break; + ini_set('display_errors', 1); + break; - case 'testing': case 'production': error_reporting(0); - break; + break; default: exit('The application environment is not set correctly.');