Skip to content
Permalink
Browse files

Fix ajax to always expect an Error object, per #10646.

  • Loading branch information...
dmethvin committed Nov 8, 2011
1 parent f8eba6e commit 586fb059190ecacd89e3cd211c78e776792d2f2b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ajax.js
@@ -752,10 +752,10 @@ jQuery.extend({
} catch (e) {
// Propagate exception as error if not done
if ( state < 2 ) {
done( -1, e );
done( -1, e.message );
// Simply rethrow otherwise
} else {
jQuery.error( e );
jQuery.error( e.message );
}
}
}

0 comments on commit 586fb05

Please sign in to comment.
You can’t perform that action at this time.