Skip to content

Instantly share code, notes, and snippets.

@iegorov
Last active October 20, 2017 08:57
Show Gist options
  • Save iegorov/9dd3d45a8a33f40dde3221150e3da6fd to your computer and use it in GitHub Desktop.
Save iegorov/9dd3d45a8a33f40dde3221150e3da6fd to your computer and use it in GitHub Desktop.
.catch((errorResp) => {
if (!errorResp.data || !errorResp.data.error || !errorResp.data.error.message) {
Utils.alert.error('Возникла ошибка. Повторите попытку.');
return;
}
Utils.alert
.error(errorResp.data.error.message);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment