syserrno

UNIX errors with additions for launchctl

node-errno

An easier way to track errno's

This is mainly for use with node-launchctl

npm install syserrno

Params:

  • {Number} errno The error number

Example:

var errno = require('errno')
console.log(errno.strerror(148));
// outputs "Invalid domain"

Params:

  • {String} code The error code

Example:

var errno = require('errno')
var err = errno.errorForCode('EIVALDO');
console.log(err);

Returns: An Error object containing

{
  code: 'EIVALDO',
  msg: 'Invalid domain',
  errno: 148
}

Params:

  • {Number} errno The error number