Merge "Fix forwarding promise rejection arguments"

This commit is contained in:
jenkins-bot 2024-11-15 11:05:07 +00:00 committed by Gerrit Code Review
commit 8211bc5000

View file

@ -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 ) ) {