aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index bf81d3a73..fb5f08c1d 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -752,10 +752,10 @@ jQuery.extend({
} catch (e) {
// Propagate exception as error if not done
if ( state < 2 ) {
- done( -1, e.message );
+ done( -1, e );
// Simply rethrow otherwise
} else {
- jQuery.error( e.message );
+ throw e;
}
}
}