Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@GuyMograbi
Created June 23, 2017 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuyMograbi/312dc541e82caf72244ff3ccae0bf96e to your computer and use it in GitHub Desktop.
Save GuyMograbi/312dc541e82caf72244ff3ccae0bf96e to your computer and use it in GitHub Desktop.
concatenate stack
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