UNPKG

safety-catch

Version:

Small module that makes sure your catch, caught an actual error and not a programming mistake or assertion

8 lines (6 loc) 90 B
const safetyCatch = require('./') try { foo.bar() } catch (err) { safetyCatch(err) }