Created
January 23, 2019 11:35
-
-
Save flimzy/78be389b85d37ba7536daf5e858b8ca7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getErrorMessage(response) { | |
if (!response.originalError.response) | |
return 'network error'; | |
return response.originalError.response.data.errorMessage; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment