node-errno
An easier way to track errno's
This is mainly for use with node-launchctl
Install
$ npm install syserrno
API
#strerror(errno)
Params:
- {Number} errno The error number
Example:
var errno = console// outputs "Invalid domain"
#errorForCode(code)
Params:
- {String} code The error code
Example:
var errno = var err = errnoconsole
Returns: An Error object containing
code: 'EIVALDO' msg: 'Invalid domain' errno: 148
#errorForErrno(errno)
Params:
- {Number} errno The error number