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

Add a way to manage error on deletion #980

Closed
Kmaschta opened this issue Mar 16, 2016 · 1 comment
Closed

Add a way to manage error on deletion #980

Kmaschta opened this issue Mar 16, 2016 · 1 comment

Comments

@Kmaschta
Copy link
Contributor

Let's consider this configuration:

admin.errorMessage(function (response) {
    console.error(response);
    return response.data.error || JSON.stringify(response);
});

nga.configure(admin);

If an error is threw on deletion, it is not intercepted by errorMessage so response body is displayed to the user.

@fzaninotto
Copy link
Member

Fixed by #982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants