Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/jquery.i18n.messagestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
.done( deferred.resolve )
.fail( function ( jqxhr, settings, exception ) {
$.i18n.log( 'Error in loading messages from ' + url + ' Exception: ' + exception );
// Ignore 404 exception, because we are handling fallabacks explicitly
deferred.resolve();
// Ignore 404 exception, because we are handling fallbacks explicitly
if ( jqxhr.status === 404 ) {
deferred.resolve();
} else {
deferred.reject( exception );
}
} );

return deferred.promise();
}

/**
* See https://github.com/wikimedia/jquery.i18n/wiki/Specification#wiki-Message_File_Loading
*/
Expand Down