kerium 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/error.d.ts +129 -129
  2. package/dist/error.js +131 -130
  3. package/package.json +2 -2
package/dist/error.d.ts CHANGED
@@ -269,136 +269,136 @@ export declare enum Errno {
269
269
  * @internal
270
270
  */
271
271
  declare const errnoMessages: {
272
- readonly 1: "Operation not permitted";
273
- readonly 2: "No such file or directory";
274
- readonly 3: "No such process";
275
- readonly 4: "Interrupted system call";
276
- readonly 5: "Input/output error";
277
- readonly 6: "No such device or address";
278
- readonly 7: "Argument list too long";
279
- readonly 8: "Exec format error";
280
- readonly 9: "Bad file descriptor";
281
- readonly 10: "No child processes";
282
- readonly 11: "Resource temporarily unavailable";
283
- readonly 12: "Out of memory";
284
- readonly 13: "Permission denied";
285
- readonly 14: "Bad address";
286
- readonly 15: "Block device required";
287
- readonly 16: "Resource busy or locked";
288
- readonly 17: "File exists";
289
- readonly 18: "Invalid cross-device link";
290
- readonly 19: "No such device";
291
- readonly 20: "File is not a directory";
292
- readonly 21: "File is a directory";
293
- readonly 22: "Invalid argument";
294
- readonly 23: "Too many open files in system";
295
- readonly 24: "Too many open files";
296
- readonly 26: "Text file busy";
297
- readonly 27: "File is too big";
298
- readonly 28: "No space left on disk";
299
- readonly 29: "Illegal seek";
300
- readonly 30: "Cannot modify a read-only file system";
301
- readonly 31: "Too many links";
302
- readonly 32: "Broken pipe";
303
- readonly 33: "Numerical argument out of domain";
304
- readonly 34: "Numerical result out of range";
305
- readonly 35: "Resource deadlock would occur";
306
- readonly 36: "File name too long";
307
- readonly 37: "No locks available";
308
- readonly 38: "Function not implemented";
309
- readonly 39: "Directory is not empty";
310
- readonly 40: "Too many levels of symbolic links";
311
- readonly 42: "No message of desired type";
312
- readonly 43: "Identifier removed";
313
- readonly 44: "Channel number out of range";
314
- readonly 45: "Level 2 not synchronized";
315
- readonly 46: "Level 3 halted";
316
- readonly 47: "Level 3 reset";
317
- readonly 48: "Link number out of range";
318
- readonly 49: "Protocol driver not attached";
319
- readonly 50: "No CSI structure available";
320
- readonly 51: "Level 2 halted";
321
- readonly 52: "Invalid exchange";
322
- readonly 53: "Invalid request descriptor";
323
- readonly 54: "Exchange full";
324
- readonly 55: "No anode";
325
- readonly 56: "Invalid request code";
326
- readonly 57: "Invalid slot";
327
- readonly 59: "Bad font file format";
328
- readonly 60: "Device not a stream";
329
- readonly 61: "No data available";
330
- readonly 62: "Timer expired";
331
- readonly 63: "Out of streams resources";
332
- readonly 64: "Machine is not on the network";
333
- readonly 65: "Package not installed";
334
- readonly 66: "Object is remote";
335
- readonly 67: "Link has been severed";
336
- readonly 68: "Advertise error";
337
- readonly 69: "Srmount error";
338
- readonly 70: "Communication error on send";
339
- readonly 71: "Protocol error";
340
- readonly 72: "Multihop attempted";
341
- readonly 73: "RFS specific error";
342
- readonly 74: "Bad message";
343
- readonly 75: "Value too large for defined data type";
344
- readonly 76: "Name not unique on network";
345
- readonly 77: "File descriptor in bad state";
346
- readonly 78: "Remote address changed";
347
- readonly 79: "Can not access a needed shared library";
348
- readonly 80: "Accessing a corrupted shared library";
272
+ readonly 1: "operation not permitted";
273
+ readonly 2: "no such file or directory";
274
+ readonly 3: "no such process";
275
+ readonly 4: "interrupted system call";
276
+ readonly 5: "i/o error";
277
+ readonly 6: "no such device or address";
278
+ readonly 7: "argument list too long";
279
+ readonly 8: "exec format error";
280
+ readonly 9: "bad file descriptor";
281
+ readonly 10: "no child processes";
282
+ readonly 11: "resource temporarily unavailable";
283
+ readonly 12: "not enough memory";
284
+ readonly 13: "permission denied";
285
+ readonly 14: "bad address in system call argument";
286
+ readonly 15: "block device required";
287
+ readonly 16: "resource busy or locked";
288
+ readonly 17: "file already exists";
289
+ readonly 18: "cross-device link not permitted";
290
+ readonly 19: "no such device";
291
+ readonly 20: "not a directory";
292
+ readonly 21: "illegal operation on a directory";
293
+ readonly 22: "invalid argument";
294
+ readonly 23: "file table overflow";
295
+ readonly 24: "too many open files";
296
+ readonly 26: "text file is busy";
297
+ readonly 27: "file too large";
298
+ readonly 28: "no space left on device";
299
+ readonly 29: "invalid seek";
300
+ readonly 30: "read-only file system";
301
+ readonly 31: "too many links";
302
+ readonly 32: "broken pipe";
303
+ readonly 33: "numerical argument out of domain";
304
+ readonly 34: "result too large";
305
+ readonly 35: "resource deadlock would occur";
306
+ readonly 36: "name too long";
307
+ readonly 37: "no locks available";
308
+ readonly 38: "function not implemented";
309
+ readonly 39: "directory not empty";
310
+ readonly 40: "too many symbolic links encountered";
311
+ readonly 42: "no message of desired type";
312
+ readonly 43: "identifier removed";
313
+ readonly 44: "channel number out of range";
314
+ readonly 45: "level 2 not synchronized";
315
+ readonly 46: "level 3 halted";
316
+ readonly 47: "level 3 reset";
317
+ readonly 48: "link number out of range";
318
+ readonly 49: "protocol driver not attached";
319
+ readonly 50: "no CSI structure available";
320
+ readonly 51: "level 2 halted";
321
+ readonly 52: "invalid exchange";
322
+ readonly 53: "invalid request descriptor";
323
+ readonly 54: "exchange full";
324
+ readonly 55: "no anode";
325
+ readonly 56: "invalid request code";
326
+ readonly 57: "invalid slot";
327
+ readonly 59: "bad font file format";
328
+ readonly 60: "device not a stream";
329
+ readonly 61: "no data available";
330
+ readonly 62: "timer expired";
331
+ readonly 63: "out of streams resources";
332
+ readonly 64: "machine is not on the network";
333
+ readonly 65: "package not installed";
334
+ readonly 66: "object is remote";
335
+ readonly 67: "link has been severed";
336
+ readonly 68: "advertise error";
337
+ readonly 69: "srmount error";
338
+ readonly 70: "communication error on send";
339
+ readonly 71: "protocol error";
340
+ readonly 72: "multihop attempted";
341
+ readonly 73: "rFS specific error";
342
+ readonly 74: "bad message";
343
+ readonly 75: "value too large for defined data type";
344
+ readonly 76: "name not unique on network";
345
+ readonly 77: "file descriptor in bad state";
346
+ readonly 78: "remote address changed";
347
+ readonly 79: "can not access a needed shared library";
348
+ readonly 80: "accessing a corrupted shared library";
349
349
  readonly 81: ".lib section in a.out corrupted";
350
- readonly 82: "Attempting to link in too many shared libraries";
351
- readonly 83: "Cannot exec a shared library directly";
352
- readonly 84: "Invalid or incomplete multibyte or wide character";
353
- readonly 85: "Interrupted system call should be restarted";
354
- readonly 86: "Streams pipe error";
355
- readonly 87: "Too many users";
356
- readonly 88: "Socket operation on non-socket";
357
- readonly 89: "Destination address required";
358
- readonly 90: "Message too long";
359
- readonly 91: "Protocol wrong type for socket";
360
- readonly 92: "Protocol not available";
361
- readonly 93: "Protocol not supported";
362
- readonly 94: "Socket type not supported";
363
- readonly 95: "Operation is not supported";
364
- readonly 96: "Protocol family not supported";
365
- readonly 97: "Address family not supported by protocol";
366
- readonly 98: "Address already in use";
367
- readonly 99: "Cannot assign requested address";
368
- readonly 100: "Network is down";
369
- readonly 101: "Network is unreachable";
370
- readonly 102: "Network dropped connection on reset";
371
- readonly 103: "Software caused connection abort";
372
- readonly 104: "Connection reset by peer";
373
- readonly 105: "No buffer space available";
374
- readonly 106: "Transport endpoint is already connected";
375
- readonly 107: "Transport endpoint is not connected";
376
- readonly 108: "Cannot send after transport endpoint shutdown";
377
- readonly 109: "Too many references: cannot splice";
378
- readonly 110: "Connection timed out";
379
- readonly 111: "Connection refused";
380
- readonly 112: "Host is down";
381
- readonly 113: "No route to host";
382
- readonly 114: "Operation already in progress";
383
- readonly 115: "Operation now in progress";
384
- readonly 116: "Stale file handle";
385
- readonly 117: "Structure needs cleaning";
386
- readonly 118: "Not a XENIX named type file";
387
- readonly 119: "No XENIX semaphores available";
388
- readonly 120: "Is a named type file";
389
- readonly 121: "Remote I/O error";
390
- readonly 122: "Disk quota exceeded";
391
- readonly 123: "No medium found";
392
- readonly 124: "Wrong medium type";
393
- readonly 125: "Operation canceled";
394
- readonly 126: "Required key not available";
395
- readonly 127: "Key has expired";
396
- readonly 128: "Key has been revoked";
397
- readonly 129: "Key was rejected by service";
398
- readonly 130: "Owner died";
399
- readonly 131: "State not recoverable";
400
- readonly 132: "Operation not possible due to RF-kill";
401
- readonly 133: "Memory page has hardware error";
350
+ readonly 82: "attempting to link in too many shared libraries";
351
+ readonly 83: "cannot exec a shared library directly";
352
+ readonly 84: "illegal byte sequence";
353
+ readonly 85: "interrupted system call should be restarted";
354
+ readonly 86: "streams pipe error";
355
+ readonly 87: "too many users";
356
+ readonly 88: "socket operation on non-socket";
357
+ readonly 89: "destination address required";
358
+ readonly 90: "message too long";
359
+ readonly 91: "protocol wrong type for socket";
360
+ readonly 92: "protocol not available";
361
+ readonly 93: "protocol not supported";
362
+ readonly 94: "socket type not supported";
363
+ readonly 95: "operation not supported on socket";
364
+ readonly 96: "protocol family not supported";
365
+ readonly 97: "address family not supported";
366
+ readonly 98: "address already in use";
367
+ readonly 99: "address not available";
368
+ readonly 100: "network is down";
369
+ readonly 101: "network is unreachable";
370
+ readonly 102: "network dropped connection on reset";
371
+ readonly 103: "software caused connection abort";
372
+ readonly 104: "connection reset by peer";
373
+ readonly 105: "no buffer space available";
374
+ readonly 106: "socket is already connected";
375
+ readonly 107: "socket is not connected";
376
+ readonly 108: "cannot send after transport endpoint shutdown";
377
+ readonly 109: "too many references: cannot splice";
378
+ readonly 110: "connection timed out";
379
+ readonly 111: "connection refused";
380
+ readonly 112: "host is down";
381
+ readonly 113: "host is unreachable";
382
+ readonly 114: "connection already in progress";
383
+ readonly 115: "operation now in progress";
384
+ readonly 116: "stale file handle";
385
+ readonly 117: "structure needs cleaning";
386
+ readonly 118: "not a XENIX named type file";
387
+ readonly 119: "no XENIX semaphores available";
388
+ readonly 120: "is a named type file";
389
+ readonly 121: "remote I/O error";
390
+ readonly 122: "disk quota exceeded";
391
+ readonly 123: "no medium found";
392
+ readonly 124: "wrong medium type";
393
+ readonly 125: "operation canceled";
394
+ readonly 126: "required key not available";
395
+ readonly 127: "key has expired";
396
+ readonly 128: "key has been revoked";
397
+ readonly 129: "key was rejected by service";
398
+ readonly 130: "owner died";
399
+ readonly 131: "state not recoverable";
400
+ readonly 132: "operation not possible due to RF-kill";
401
+ readonly 133: "memory page has hardware error";
402
402
  };
403
403
  type ErrnoMessage<T extends Errno | keyof typeof Errno> = (typeof errnoMessages)[T extends Errno ? T : T extends keyof typeof Errno ? (typeof Errno)[T] : ''];
404
404
  export declare function strerror<const T extends Errno | keyof typeof Errno>(errno: T): ErrnoMessage<T>;
package/dist/error.js CHANGED
@@ -271,136 +271,136 @@ export var Errno;
271
271
  * @internal
272
272
  */
273
273
  const errnoMessages = {
274
- [Errno.EPERM]: 'Operation not permitted',
275
- [Errno.ENOENT]: 'No such file or directory',
276
- [Errno.ESRCH]: 'No such process',
277
- [Errno.EINTR]: 'Interrupted system call',
278
- [Errno.EIO]: 'Input/output error',
279
- [Errno.ENXIO]: 'No such device or address',
280
- [Errno.E2BIG]: 'Argument list too long',
281
- [Errno.ENOEXEC]: 'Exec format error',
282
- [Errno.EBADF]: 'Bad file descriptor',
283
- [Errno.ECHILD]: 'No child processes',
284
- [Errno.EAGAIN]: 'Resource temporarily unavailable',
285
- [Errno.ENOMEM]: 'Out of memory',
286
- [Errno.EACCES]: 'Permission denied',
287
- [Errno.EFAULT]: 'Bad address',
288
- [Errno.ENOTBLK]: 'Block device required',
289
- [Errno.EBUSY]: 'Resource busy or locked',
290
- [Errno.EEXIST]: 'File exists',
291
- [Errno.EXDEV]: 'Invalid cross-device link',
292
- [Errno.ENODEV]: 'No such device',
293
- [Errno.ENOTDIR]: 'File is not a directory',
294
- [Errno.EISDIR]: 'File is a directory',
295
- [Errno.EINVAL]: 'Invalid argument',
296
- [Errno.ENFILE]: 'Too many open files in system',
297
- [Errno.EMFILE]: 'Too many open files',
298
- [Errno.ETXTBSY]: 'Text file busy',
299
- [Errno.EFBIG]: 'File is too big',
300
- [Errno.ENOSPC]: 'No space left on disk',
301
- [Errno.ESPIPE]: 'Illegal seek',
302
- [Errno.EROFS]: 'Cannot modify a read-only file system',
303
- [Errno.EMLINK]: 'Too many links',
304
- [Errno.EPIPE]: 'Broken pipe',
305
- [Errno.EDOM]: 'Numerical argument out of domain',
306
- [Errno.ERANGE]: 'Numerical result out of range',
307
- [Errno.EDEADLK]: 'Resource deadlock would occur',
308
- [Errno.ENAMETOOLONG]: 'File name too long',
309
- [Errno.ENOLCK]: 'No locks available',
310
- [Errno.ENOSYS]: 'Function not implemented',
311
- [Errno.ENOTEMPTY]: 'Directory is not empty',
312
- [Errno.ELOOP]: 'Too many levels of symbolic links',
313
- [Errno.ENOMSG]: 'No message of desired type',
314
- [Errno.EIDRM]: 'Identifier removed',
315
- [Errno.ECHRNG]: 'Channel number out of range',
316
- [Errno.EL2NSYNC]: 'Level 2 not synchronized',
317
- [Errno.EL3HLT]: 'Level 3 halted',
318
- [Errno.EL3RST]: 'Level 3 reset',
319
- [Errno.ENRNG]: 'Link number out of range',
320
- [Errno.EUNATCH]: 'Protocol driver not attached',
321
- [Errno.ECSI]: 'No CSI structure available',
322
- [Errno.EL2HLT]: 'Level 2 halted',
323
- [Errno.EBADE]: 'Invalid exchange',
324
- [Errno.EBADR]: 'Invalid request descriptor',
325
- [Errno.EXFULL]: 'Exchange full',
326
- [Errno.ENOANO]: 'No anode',
327
- [Errno.EBADRQC]: 'Invalid request code',
328
- [Errno.EBADSLT]: 'Invalid slot',
329
- [Errno.EBFONT]: 'Bad font file format',
330
- [Errno.ENOSTR]: 'Device not a stream',
331
- [Errno.ENODATA]: 'No data available',
332
- [Errno.ETIME]: 'Timer expired',
333
- [Errno.ENOSR]: 'Out of streams resources',
334
- [Errno.ENONET]: 'Machine is not on the network',
335
- [Errno.ENOPKG]: 'Package not installed',
336
- [Errno.EREMOTE]: 'Object is remote',
337
- [Errno.ENOLINK]: 'Link has been severed',
338
- [Errno.EADV]: 'Advertise error',
339
- [Errno.ESRMNT]: 'Srmount error',
340
- [Errno.ECOMM]: 'Communication error on send',
341
- [Errno.EPROTO]: 'Protocol error',
342
- [Errno.EMULTIHOP]: 'Multihop attempted',
343
- [Errno.EDOTDOT]: 'RFS specific error',
344
- [Errno.EBADMSG]: 'Bad message',
345
- [Errno.EOVERFLOW]: 'Value too large for defined data type',
346
- [Errno.ENOTUNIQ]: 'Name not unique on network',
347
- [Errno.EBADFD]: 'File descriptor in bad state',
348
- [Errno.EREMCHG]: 'Remote address changed',
349
- [Errno.ELIBACC]: 'Can not access a needed shared library',
350
- [Errno.ELIBBAD]: 'Accessing a corrupted shared library',
274
+ [Errno.EPERM]: 'operation not permitted',
275
+ [Errno.ENOENT]: 'no such file or directory',
276
+ [Errno.ESRCH]: 'no such process',
277
+ [Errno.EINTR]: 'interrupted system call',
278
+ [Errno.EIO]: 'i/o error',
279
+ [Errno.ENXIO]: 'no such device or address',
280
+ [Errno.E2BIG]: 'argument list too long',
281
+ [Errno.ENOEXEC]: 'exec format error',
282
+ [Errno.EBADF]: 'bad file descriptor',
283
+ [Errno.ECHILD]: 'no child processes',
284
+ [Errno.EAGAIN]: 'resource temporarily unavailable',
285
+ [Errno.ENOMEM]: 'not enough memory',
286
+ [Errno.EACCES]: 'permission denied',
287
+ [Errno.EFAULT]: 'bad address in system call argument',
288
+ [Errno.ENOTBLK]: 'block device required',
289
+ [Errno.EBUSY]: 'resource busy or locked',
290
+ [Errno.EEXIST]: 'file already exists',
291
+ [Errno.EXDEV]: 'cross-device link not permitted',
292
+ [Errno.ENODEV]: 'no such device',
293
+ [Errno.ENOTDIR]: 'not a directory',
294
+ [Errno.EISDIR]: 'illegal operation on a directory',
295
+ [Errno.EINVAL]: 'invalid argument',
296
+ [Errno.ENFILE]: 'file table overflow',
297
+ [Errno.EMFILE]: 'too many open files',
298
+ [Errno.ETXTBSY]: 'text file is busy',
299
+ [Errno.EFBIG]: 'file too large',
300
+ [Errno.ENOSPC]: 'no space left on device',
301
+ [Errno.ESPIPE]: 'invalid seek',
302
+ [Errno.EROFS]: 'read-only file system',
303
+ [Errno.EMLINK]: 'too many links',
304
+ [Errno.EPIPE]: 'broken pipe',
305
+ [Errno.EDOM]: 'numerical argument out of domain',
306
+ [Errno.ERANGE]: 'result too large',
307
+ [Errno.EDEADLK]: 'resource deadlock would occur',
308
+ [Errno.ENAMETOOLONG]: 'name too long',
309
+ [Errno.ENOLCK]: 'no locks available',
310
+ [Errno.ENOSYS]: 'function not implemented',
311
+ [Errno.ENOTEMPTY]: 'directory not empty',
312
+ [Errno.ELOOP]: 'too many symbolic links encountered',
313
+ [Errno.ENOMSG]: 'no message of desired type',
314
+ [Errno.EIDRM]: 'identifier removed',
315
+ [Errno.ECHRNG]: 'channel number out of range',
316
+ [Errno.EL2NSYNC]: 'level 2 not synchronized',
317
+ [Errno.EL3HLT]: 'level 3 halted',
318
+ [Errno.EL3RST]: 'level 3 reset',
319
+ [Errno.ENRNG]: 'link number out of range',
320
+ [Errno.EUNATCH]: 'protocol driver not attached',
321
+ [Errno.ECSI]: 'no CSI structure available',
322
+ [Errno.EL2HLT]: 'level 2 halted',
323
+ [Errno.EBADE]: 'invalid exchange',
324
+ [Errno.EBADR]: 'invalid request descriptor',
325
+ [Errno.EXFULL]: 'exchange full',
326
+ [Errno.ENOANO]: 'no anode',
327
+ [Errno.EBADRQC]: 'invalid request code',
328
+ [Errno.EBADSLT]: 'invalid slot',
329
+ [Errno.EBFONT]: 'bad font file format',
330
+ [Errno.ENOSTR]: 'device not a stream',
331
+ [Errno.ENODATA]: 'no data available',
332
+ [Errno.ETIME]: 'timer expired',
333
+ [Errno.ENOSR]: 'out of streams resources',
334
+ [Errno.ENONET]: 'machine is not on the network',
335
+ [Errno.ENOPKG]: 'package not installed',
336
+ [Errno.EREMOTE]: 'object is remote',
337
+ [Errno.ENOLINK]: 'link has been severed',
338
+ [Errno.EADV]: 'advertise error',
339
+ [Errno.ESRMNT]: 'srmount error',
340
+ [Errno.ECOMM]: 'communication error on send',
341
+ [Errno.EPROTO]: 'protocol error',
342
+ [Errno.EMULTIHOP]: 'multihop attempted',
343
+ [Errno.EDOTDOT]: 'rFS specific error',
344
+ [Errno.EBADMSG]: 'bad message',
345
+ [Errno.EOVERFLOW]: 'value too large for defined data type',
346
+ [Errno.ENOTUNIQ]: 'name not unique on network',
347
+ [Errno.EBADFD]: 'file descriptor in bad state',
348
+ [Errno.EREMCHG]: 'remote address changed',
349
+ [Errno.ELIBACC]: 'can not access a needed shared library',
350
+ [Errno.ELIBBAD]: 'accessing a corrupted shared library',
351
351
  [Errno.ELIBSCN]: '.lib section in a.out corrupted',
352
- [Errno.ELIBMAX]: 'Attempting to link in too many shared libraries',
353
- [Errno.ELIBEXEC]: 'Cannot exec a shared library directly',
354
- [Errno.EILSEQ]: 'Invalid or incomplete multibyte or wide character',
355
- [Errno.ERESTART]: 'Interrupted system call should be restarted',
356
- [Errno.ESTRPIPE]: 'Streams pipe error',
357
- [Errno.EUSERS]: 'Too many users',
358
- [Errno.ENOTSOCK]: 'Socket operation on non-socket',
359
- [Errno.EDESTADDRREQ]: 'Destination address required',
360
- [Errno.EMSGSIZE]: 'Message too long',
361
- [Errno.EPROTOTYPE]: 'Protocol wrong type for socket',
362
- [Errno.ENOPROTOOPT]: 'Protocol not available',
363
- [Errno.EPROTONOSUPPORT]: 'Protocol not supported',
364
- [Errno.ESOCKTNOSUPPORT]: 'Socket type not supported',
365
- [Errno.ENOTSUP]: 'Operation is not supported',
366
- [Errno.EPFNOSUPPORT]: 'Protocol family not supported',
367
- [Errno.EAFNOSUPPORT]: 'Address family not supported by protocol',
368
- [Errno.EADDRINUSE]: 'Address already in use',
369
- [Errno.EADDRNOTAVAIL]: 'Cannot assign requested address',
370
- [Errno.ENETDOWN]: 'Network is down',
371
- [Errno.ENETUNREACH]: 'Network is unreachable',
372
- [Errno.ENETRESET]: 'Network dropped connection on reset',
373
- [Errno.ECONNABORTED]: 'Software caused connection abort',
374
- [Errno.ECONNRESET]: 'Connection reset by peer',
375
- [Errno.ENOBUFS]: 'No buffer space available',
376
- [Errno.EISCONN]: 'Transport endpoint is already connected',
377
- [Errno.ENOTCONN]: 'Transport endpoint is not connected',
378
- [Errno.ESHUTDOWN]: 'Cannot send after transport endpoint shutdown',
379
- [Errno.ETOOMANYREFS]: 'Too many references: cannot splice',
380
- [Errno.ETIMEDOUT]: 'Connection timed out',
381
- [Errno.ECONNREFUSED]: 'Connection refused',
382
- [Errno.EHOSTDOWN]: 'Host is down',
383
- [Errno.EHOSTUNREACH]: 'No route to host',
384
- [Errno.EALREADY]: 'Operation already in progress',
385
- [Errno.EINPROGRESS]: 'Operation now in progress',
386
- [Errno.ESTALE]: 'Stale file handle',
387
- [Errno.EEUCLEAN]: 'Structure needs cleaning',
388
- [Errno.ENOTNAM]: 'Not a XENIX named type file',
389
- [Errno.ENAVAIL]: 'No XENIX semaphores available',
390
- [Errno.EISNAM]: 'Is a named type file',
391
- [Errno.EREMOTEIO]: 'Remote I/O error',
392
- [Errno.EDQUOT]: 'Disk quota exceeded',
393
- [Errno.ENOMEDIUM]: 'No medium found',
394
- [Errno.EMEDIUMTYPE]: 'Wrong medium type',
395
- [Errno.ECANCELED]: 'Operation canceled',
396
- [Errno.ENOKEY]: 'Required key not available',
397
- [Errno.EKEYEXPIRED]: 'Key has expired',
398
- [Errno.EKEYREVOKED]: 'Key has been revoked',
399
- [Errno.EKEYREJECTED]: 'Key was rejected by service',
400
- [Errno.EOWNERDEAD]: 'Owner died',
401
- [Errno.ENOTRECOVERABLE]: 'State not recoverable',
402
- [Errno.ERFKILL]: 'Operation not possible due to RF-kill',
403
- [Errno.EHWPOISON]: 'Memory page has hardware error',
352
+ [Errno.ELIBMAX]: 'attempting to link in too many shared libraries',
353
+ [Errno.ELIBEXEC]: 'cannot exec a shared library directly',
354
+ [Errno.EILSEQ]: 'illegal byte sequence',
355
+ [Errno.ERESTART]: 'interrupted system call should be restarted',
356
+ [Errno.ESTRPIPE]: 'streams pipe error',
357
+ [Errno.EUSERS]: 'too many users',
358
+ [Errno.ENOTSOCK]: 'socket operation on non-socket',
359
+ [Errno.EDESTADDRREQ]: 'destination address required',
360
+ [Errno.EMSGSIZE]: 'message too long',
361
+ [Errno.EPROTOTYPE]: 'protocol wrong type for socket',
362
+ [Errno.ENOPROTOOPT]: 'protocol not available',
363
+ [Errno.EPROTONOSUPPORT]: 'protocol not supported',
364
+ [Errno.ESOCKTNOSUPPORT]: 'socket type not supported',
365
+ [Errno.ENOTSUP]: 'operation not supported on socket',
366
+ [Errno.EPFNOSUPPORT]: 'protocol family not supported',
367
+ [Errno.EAFNOSUPPORT]: 'address family not supported',
368
+ [Errno.EADDRINUSE]: 'address already in use',
369
+ [Errno.EADDRNOTAVAIL]: 'address not available',
370
+ [Errno.ENETDOWN]: 'network is down',
371
+ [Errno.ENETUNREACH]: 'network is unreachable',
372
+ [Errno.ENETRESET]: 'network dropped connection on reset',
373
+ [Errno.ECONNABORTED]: 'software caused connection abort',
374
+ [Errno.ECONNRESET]: 'connection reset by peer',
375
+ [Errno.ENOBUFS]: 'no buffer space available',
376
+ [Errno.EISCONN]: 'socket is already connected',
377
+ [Errno.ENOTCONN]: 'socket is not connected',
378
+ [Errno.ESHUTDOWN]: 'cannot send after transport endpoint shutdown',
379
+ [Errno.ETOOMANYREFS]: 'too many references: cannot splice',
380
+ [Errno.ETIMEDOUT]: 'connection timed out',
381
+ [Errno.ECONNREFUSED]: 'connection refused',
382
+ [Errno.EHOSTDOWN]: 'host is down',
383
+ [Errno.EHOSTUNREACH]: 'host is unreachable',
384
+ [Errno.EALREADY]: 'connection already in progress',
385
+ [Errno.EINPROGRESS]: 'operation now in progress',
386
+ [Errno.ESTALE]: 'stale file handle',
387
+ [Errno.EEUCLEAN]: 'structure needs cleaning',
388
+ [Errno.ENOTNAM]: 'not a XENIX named type file',
389
+ [Errno.ENAVAIL]: 'no XENIX semaphores available',
390
+ [Errno.EISNAM]: 'is a named type file',
391
+ [Errno.EREMOTEIO]: 'remote I/O error',
392
+ [Errno.EDQUOT]: 'disk quota exceeded',
393
+ [Errno.ENOMEDIUM]: 'no medium found',
394
+ [Errno.EMEDIUMTYPE]: 'wrong medium type',
395
+ [Errno.ECANCELED]: 'operation canceled',
396
+ [Errno.ENOKEY]: 'required key not available',
397
+ [Errno.EKEYEXPIRED]: 'key has expired',
398
+ [Errno.EKEYREVOKED]: 'key has been revoked',
399
+ [Errno.EKEYREJECTED]: 'key was rejected by service',
400
+ [Errno.EOWNERDEAD]: 'owner died',
401
+ [Errno.ENOTRECOVERABLE]: 'state not recoverable',
402
+ [Errno.ERFKILL]: 'operation not possible due to RF-kill',
403
+ [Errno.EHWPOISON]: 'memory page has hardware error',
404
404
  };
405
405
  export function strerror(errno) {
406
406
  const _errno = typeof errno == 'string' ? Errno[errno] : errno;
@@ -415,7 +415,8 @@ export function setUVMessage(ex) {
415
415
  message += ` '${ex.path}'`;
416
416
  if (ex.dest)
417
417
  message += ` -> '${ex.dest}'`;
418
- if (ex.message && !ex.message.startsWith(errnoMessages[ex.errno]))
418
+ const isDefault = ex.message.startsWith(errnoMessages[ex.errno]) || /^E[A-Z0-9]+: /.test(ex.message);
419
+ if (ex.message && !isDefault)
419
420
  message += ` (${ex.message})`;
420
421
  ex.message = message;
421
422
  return ex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kerium",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "POSIX-style errors, logging, and more",
5
5
  "author": "James Prevett <jp@jamespre.dev> (https://jamespre.dev)",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "types": "dist/index.d.ts",
22
22
  "exports": {
23
23
  ".": "./dist/index.js",
24
- "./log": "./dist/log.js"
24
+ "./*": "./dist/*.js"
25
25
  },
26
26
  "files": [
27
27
  "dist"