Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

b12-archive/clean-error

Repository files navigation

This package is deprecated! Please use tiny-error instead.


Coveralls – test coverage Travis – build status David – status of dependencies Stability: experimental Code style: airbnb

clean-error

Never worry about catching errors again.
A tiny wrapper around tiny-error.





Demo

Catching errors to print a message to the user? Don’t bother! Just throw them and let them halt your program. They’ll still look pretty darn clean.

You write:

const cleanError = require('clean-error')('my-amazing-program');

throw cleanError('Oops!');

The user sees:

Coming soon…

Installation

$ npm install clean-error

License

MIT © Studio B12 GmbH

About

(DEPRECATED) Never worry about catching errors again.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published