Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#255 the load function does not fail the promise correctly #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

3 participants