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, linterrors: linterrors,
transcludedfrom: transcludedfrom, transcludedfrom: transcludedfrom,
metadata: metadata metadata: metadata
} ), () => { } ), ( ...args ) => {
// Clear on failure // Clear on failure
pageDataCache[ pageName ][ oldId ] = null; pageDataCache[ pageName ][ oldId ] = null;
// Let caller handle the error // Let caller handle the error
return $.Deferred().rejectWith( this, arguments ); return $.Deferred().reject( ...args );
} ); } );
if ( $.isEmptyObject( apiParams ) ) { if ( $.isEmptyObject( apiParams ) ) {