Skip to content

Conversation

@ANKITSINGH065
Copy link

#255 the load function does not fail the promise correctly

handle the 404 exceptions

if (jqxhr.status === 404) {
// Ignore 404 exception, because we are handling fallbacks explicitly
deferred.resolve();
} else {
$.i18n.log(
"Error in loading messages from " + url + " Exception: " + exception
);
deferred.reject(exception);
}

Copy link

@shankari shankari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a bunch of extraneous whitespace, but the actual change looks good to me.
I am not a maintainer, though, so cannot authorize the workflow scripts to run.

@ANKITSINGH065
Copy link
Author

ok

Copy link
Contributor

@winstonsung winstonsung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not change the whitespace format.

@ANKITSINGH065
Copy link
Author

Can you merge my changes

@winstonsung
Copy link
Contributor

I am not a maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants