Guest User

Untitled

a guest
Dec 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. error: function (xhr) {
  2. console.log(xhr);
  3. if (xhr.readyState === 4) {
  4. if (xhr.status === 404) {
  5. swal({
  6. type: 'error',
  7. title: 'Oops...',
  8. text: xhr.responseJSON.error,
  9. });
  10. } else {
  11. swal({
  12. type: 'error',
  13. title: 'Oops...',
  14. text: 'Something went wrong!',
  15. });
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment