Created
June 23, 2017 22:03
-
-
Save GuyMograbi/312dc541e82caf72244ff3ccae0bf96e to your computer and use it in GitHub Desktop.
concatenate stack
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
function analyzeName () { | |
... | |
}).catch((e)=>{ | |
const reason = new Error(`failed analyzing name. result status ${JSON.stringify(result)}`); | |
reason.stack += `\nCaused By:\n` + e.stack; | |
return reason; | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment