mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Merge "Fix forwarding promise rejection arguments"
This commit is contained in:
commit
8211bc5000
|
@ -96,11 +96,11 @@ function getPageData( pageName, oldId, apiParams ) {
|
|||
linterrors: linterrors,
|
||||
transcludedfrom: transcludedfrom,
|
||||
metadata: metadata
|
||||
} ), () => {
|
||||
} ), ( ...args ) => {
|
||||
// Clear on failure
|
||||
pageDataCache[ pageName ][ oldId ] = null;
|
||||
// Let caller handle the error
|
||||
return $.Deferred().rejectWith( this, arguments );
|
||||
return $.Deferred().reject( ...args );
|
||||
} );
|
||||
|
||||
if ( $.isEmptyObject( apiParams ) ) {
|
||||
|
|
Loading…
Reference in a new issue