I hereby claim:
- I am amatute on github.
- I am amatute (https://keybase.io/amatute) on keybase.
- I have a public key ASBB_V7pzeNA4jfZYqI_BSuMwWtdl2novuhnrtjb3XORNQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |