printerr
v0.0.4
Published
print information about the place where the error occurred
Downloads
1
Maintainers
Readme
PrintErr
print information about the place where the error occurred
Example #1
Print information for all uncaughtException
require('./index')();
throw new Error('error!!!');
Example #2
Print information for custom exception
const printErr = require('printerr')();
try {
throw new Error('error!!!');
} catch (e) {
printErr(e);
}
Example with custom print function
require('./index')(console.debug);
throw new Error('error!!!');