Tell users what line really matters in the stack trace.
npm install context-error
var ContextError = require("context-error");throw ContextError("You've Done Something Wrong", 2);
Returns an error ready to be thrown
Private packages, team management tools, and powerful integrations. Get started with npm Orgs
how? learn more