Created
June 5, 2021 04:41
-
-
Save mosufy/1421f83eacd5a5ae7d9cc0c06399bf23 to your computer and use it in GitHub Desktop.
This file contains 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
try { | |
await insertNewUser(user); | |
} catch (error) { | |
return { | |
error: { | |
message: error.message, | |
code: 'FAILED_INSERT_USER', | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment