Skip to content

print information about the place where the error occurred

Notifications You must be signed in to change notification settings

YaroslavGaponov/printerr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrintErr

print information about the place where the error occurred

printerr

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!!!');

About

print information about the place where the error occurred

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages