mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix ajax to always expect an Error object, per #10646.
This commit is contained in:
parent
f8eba6ee25
commit
586fb05919
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user