Permalink
Browse files

BUG log complete ajax response on errors with stack trace

  • Loading branch information...
1 parent ba3b1b8 commit 99a683fc75923f53967e1990b5ca131aecb8017a @michalochman committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/bootstrap/SilverStripe/Test/Behaviour/BasicContext.php
@@ -64,7 +64,7 @@ public function appendErrorHandlerBeforeStep(StepEvent $event)
if ('undefined' !== typeof window.jQuery) {
window.jQuery('body').ajaxError(function(event, jqxhr, settings, exception) {
if ('abort' === exception) return;
- window.onerror(event.type + ': ' + settings.type + ' ' + settings.url + ' ' + exception);
+ window.onerror(event.type + ': ' + settings.type + ' ' + settings.url + ' ' + exception + ' ' + jqxhr.responseText);
});
}
JS;

0 comments on commit 99a683f

Please sign in to comment.