kerium 1.4.1 → 1.4.3
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.
- package/dist/error.d.ts +129 -129
- package/dist/error.js +131 -130
- package/dist/log.js +1 -1
- package/package.json +1 -1
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: "
|
|
273
|
-
readonly 2: "
|
|
274
|
-
readonly 3: "
|
|
275
|
-
readonly 4: "
|
|
276
|
-
readonly 5: "
|
|
277
|
-
readonly 6: "
|
|
278
|
-
readonly 7: "
|
|
279
|
-
readonly 8: "
|
|
280
|
-
readonly 9: "
|
|
281
|
-
readonly 10: "
|
|
282
|
-
readonly 11: "
|
|
283
|
-
readonly 12: "
|
|
284
|
-
readonly 13: "
|
|
285
|
-
readonly 14: "
|
|
286
|
-
readonly 15: "
|
|
287
|
-
readonly 16: "
|
|
288
|
-
readonly 17: "
|
|
289
|
-
readonly 18: "
|
|
290
|
-
readonly 19: "
|
|
291
|
-
readonly 20: "
|
|
292
|
-
readonly 21: "
|
|
293
|
-
readonly 22: "
|
|
294
|
-
readonly 23: "
|
|
295
|
-
readonly 24: "
|
|
296
|
-
readonly 26: "
|
|
297
|
-
readonly 27: "
|
|
298
|
-
readonly 28: "
|
|
299
|
-
readonly 29: "
|
|
300
|
-
readonly 30: "
|
|
301
|
-
readonly 31: "
|
|
302
|
-
readonly 32: "
|
|
303
|
-
readonly 33: "
|
|
304
|
-
readonly 34: "
|
|
305
|
-
readonly 35: "
|
|
306
|
-
readonly 36: "
|
|
307
|
-
readonly 37: "
|
|
308
|
-
readonly 38: "
|
|
309
|
-
readonly 39: "
|
|
310
|
-
readonly 40: "
|
|
311
|
-
readonly 42: "
|
|
312
|
-
readonly 43: "
|
|
313
|
-
readonly 44: "
|
|
314
|
-
readonly 45: "
|
|
315
|
-
readonly 46: "
|
|
316
|
-
readonly 47: "
|
|
317
|
-
readonly 48: "
|
|
318
|
-
readonly 49: "
|
|
319
|
-
readonly 50: "
|
|
320
|
-
readonly 51: "
|
|
321
|
-
readonly 52: "
|
|
322
|
-
readonly 53: "
|
|
323
|
-
readonly 54: "
|
|
324
|
-
readonly 55: "
|
|
325
|
-
readonly 56: "
|
|
326
|
-
readonly 57: "
|
|
327
|
-
readonly 59: "
|
|
328
|
-
readonly 60: "
|
|
329
|
-
readonly 61: "
|
|
330
|
-
readonly 62: "
|
|
331
|
-
readonly 63: "
|
|
332
|
-
readonly 64: "
|
|
333
|
-
readonly 65: "
|
|
334
|
-
readonly 66: "
|
|
335
|
-
readonly 67: "
|
|
336
|
-
readonly 68: "
|
|
337
|
-
readonly 69: "
|
|
338
|
-
readonly 70: "
|
|
339
|
-
readonly 71: "
|
|
340
|
-
readonly 72: "
|
|
341
|
-
readonly 73: "
|
|
342
|
-
readonly 74: "
|
|
343
|
-
readonly 75: "
|
|
344
|
-
readonly 76: "
|
|
345
|
-
readonly 77: "
|
|
346
|
-
readonly 78: "
|
|
347
|
-
readonly 79: "
|
|
348
|
-
readonly 80: "
|
|
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: "
|
|
351
|
-
readonly 83: "
|
|
352
|
-
readonly 84: "
|
|
353
|
-
readonly 85: "
|
|
354
|
-
readonly 86: "
|
|
355
|
-
readonly 87: "
|
|
356
|
-
readonly 88: "
|
|
357
|
-
readonly 89: "
|
|
358
|
-
readonly 90: "
|
|
359
|
-
readonly 91: "
|
|
360
|
-
readonly 92: "
|
|
361
|
-
readonly 93: "
|
|
362
|
-
readonly 94: "
|
|
363
|
-
readonly 95: "
|
|
364
|
-
readonly 96: "
|
|
365
|
-
readonly 97: "
|
|
366
|
-
readonly 98: "
|
|
367
|
-
readonly 99: "
|
|
368
|
-
readonly 100: "
|
|
369
|
-
readonly 101: "
|
|
370
|
-
readonly 102: "
|
|
371
|
-
readonly 103: "
|
|
372
|
-
readonly 104: "
|
|
373
|
-
readonly 105: "
|
|
374
|
-
readonly 106: "
|
|
375
|
-
readonly 107: "
|
|
376
|
-
readonly 108: "
|
|
377
|
-
readonly 109: "
|
|
378
|
-
readonly 110: "
|
|
379
|
-
readonly 111: "
|
|
380
|
-
readonly 112: "
|
|
381
|
-
readonly 113: "
|
|
382
|
-
readonly 114: "
|
|
383
|
-
readonly 115: "
|
|
384
|
-
readonly 116: "
|
|
385
|
-
readonly 117: "
|
|
386
|
-
readonly 118: "
|
|
387
|
-
readonly 119: "
|
|
388
|
-
readonly 120: "
|
|
389
|
-
readonly 121: "
|
|
390
|
-
readonly 122: "
|
|
391
|
-
readonly 123: "
|
|
392
|
-
readonly 124: "
|
|
393
|
-
readonly 125: "
|
|
394
|
-
readonly 126: "
|
|
395
|
-
readonly 127: "
|
|
396
|
-
readonly 128: "
|
|
397
|
-
readonly 129: "
|
|
398
|
-
readonly 130: "
|
|
399
|
-
readonly 131: "
|
|
400
|
-
readonly 132: "
|
|
401
|
-
readonly 133: "
|
|
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]: '
|
|
275
|
-
[Errno.ENOENT]: '
|
|
276
|
-
[Errno.ESRCH]: '
|
|
277
|
-
[Errno.EINTR]: '
|
|
278
|
-
[Errno.EIO]: '
|
|
279
|
-
[Errno.ENXIO]: '
|
|
280
|
-
[Errno.E2BIG]: '
|
|
281
|
-
[Errno.ENOEXEC]: '
|
|
282
|
-
[Errno.EBADF]: '
|
|
283
|
-
[Errno.ECHILD]: '
|
|
284
|
-
[Errno.EAGAIN]: '
|
|
285
|
-
[Errno.ENOMEM]: '
|
|
286
|
-
[Errno.EACCES]: '
|
|
287
|
-
[Errno.EFAULT]: '
|
|
288
|
-
[Errno.ENOTBLK]: '
|
|
289
|
-
[Errno.EBUSY]: '
|
|
290
|
-
[Errno.EEXIST]: '
|
|
291
|
-
[Errno.EXDEV]: '
|
|
292
|
-
[Errno.ENODEV]: '
|
|
293
|
-
[Errno.ENOTDIR]: '
|
|
294
|
-
[Errno.EISDIR]: '
|
|
295
|
-
[Errno.EINVAL]: '
|
|
296
|
-
[Errno.ENFILE]: '
|
|
297
|
-
[Errno.EMFILE]: '
|
|
298
|
-
[Errno.ETXTBSY]: '
|
|
299
|
-
[Errno.EFBIG]: '
|
|
300
|
-
[Errno.ENOSPC]: '
|
|
301
|
-
[Errno.ESPIPE]: '
|
|
302
|
-
[Errno.EROFS]: '
|
|
303
|
-
[Errno.EMLINK]: '
|
|
304
|
-
[Errno.EPIPE]: '
|
|
305
|
-
[Errno.EDOM]: '
|
|
306
|
-
[Errno.ERANGE]: '
|
|
307
|
-
[Errno.EDEADLK]: '
|
|
308
|
-
[Errno.ENAMETOOLONG]: '
|
|
309
|
-
[Errno.ENOLCK]: '
|
|
310
|
-
[Errno.ENOSYS]: '
|
|
311
|
-
[Errno.ENOTEMPTY]: '
|
|
312
|
-
[Errno.ELOOP]: '
|
|
313
|
-
[Errno.ENOMSG]: '
|
|
314
|
-
[Errno.EIDRM]: '
|
|
315
|
-
[Errno.ECHRNG]: '
|
|
316
|
-
[Errno.EL2NSYNC]: '
|
|
317
|
-
[Errno.EL3HLT]: '
|
|
318
|
-
[Errno.EL3RST]: '
|
|
319
|
-
[Errno.ENRNG]: '
|
|
320
|
-
[Errno.EUNATCH]: '
|
|
321
|
-
[Errno.ECSI]: '
|
|
322
|
-
[Errno.EL2HLT]: '
|
|
323
|
-
[Errno.EBADE]: '
|
|
324
|
-
[Errno.EBADR]: '
|
|
325
|
-
[Errno.EXFULL]: '
|
|
326
|
-
[Errno.ENOANO]: '
|
|
327
|
-
[Errno.EBADRQC]: '
|
|
328
|
-
[Errno.EBADSLT]: '
|
|
329
|
-
[Errno.EBFONT]: '
|
|
330
|
-
[Errno.ENOSTR]: '
|
|
331
|
-
[Errno.ENODATA]: '
|
|
332
|
-
[Errno.ETIME]: '
|
|
333
|
-
[Errno.ENOSR]: '
|
|
334
|
-
[Errno.ENONET]: '
|
|
335
|
-
[Errno.ENOPKG]: '
|
|
336
|
-
[Errno.EREMOTE]: '
|
|
337
|
-
[Errno.ENOLINK]: '
|
|
338
|
-
[Errno.EADV]: '
|
|
339
|
-
[Errno.ESRMNT]: '
|
|
340
|
-
[Errno.ECOMM]: '
|
|
341
|
-
[Errno.EPROTO]: '
|
|
342
|
-
[Errno.EMULTIHOP]: '
|
|
343
|
-
[Errno.EDOTDOT]: '
|
|
344
|
-
[Errno.EBADMSG]: '
|
|
345
|
-
[Errno.EOVERFLOW]: '
|
|
346
|
-
[Errno.ENOTUNIQ]: '
|
|
347
|
-
[Errno.EBADFD]: '
|
|
348
|
-
[Errno.EREMCHG]: '
|
|
349
|
-
[Errno.ELIBACC]: '
|
|
350
|
-
[Errno.ELIBBAD]: '
|
|
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]: '
|
|
353
|
-
[Errno.ELIBEXEC]: '
|
|
354
|
-
[Errno.EILSEQ]: '
|
|
355
|
-
[Errno.ERESTART]: '
|
|
356
|
-
[Errno.ESTRPIPE]: '
|
|
357
|
-
[Errno.EUSERS]: '
|
|
358
|
-
[Errno.ENOTSOCK]: '
|
|
359
|
-
[Errno.EDESTADDRREQ]: '
|
|
360
|
-
[Errno.EMSGSIZE]: '
|
|
361
|
-
[Errno.EPROTOTYPE]: '
|
|
362
|
-
[Errno.ENOPROTOOPT]: '
|
|
363
|
-
[Errno.EPROTONOSUPPORT]: '
|
|
364
|
-
[Errno.ESOCKTNOSUPPORT]: '
|
|
365
|
-
[Errno.ENOTSUP]: '
|
|
366
|
-
[Errno.EPFNOSUPPORT]: '
|
|
367
|
-
[Errno.EAFNOSUPPORT]: '
|
|
368
|
-
[Errno.EADDRINUSE]: '
|
|
369
|
-
[Errno.EADDRNOTAVAIL]: '
|
|
370
|
-
[Errno.ENETDOWN]: '
|
|
371
|
-
[Errno.ENETUNREACH]: '
|
|
372
|
-
[Errno.ENETRESET]: '
|
|
373
|
-
[Errno.ECONNABORTED]: '
|
|
374
|
-
[Errno.ECONNRESET]: '
|
|
375
|
-
[Errno.ENOBUFS]: '
|
|
376
|
-
[Errno.EISCONN]: '
|
|
377
|
-
[Errno.ENOTCONN]: '
|
|
378
|
-
[Errno.ESHUTDOWN]: '
|
|
379
|
-
[Errno.ETOOMANYREFS]: '
|
|
380
|
-
[Errno.ETIMEDOUT]: '
|
|
381
|
-
[Errno.ECONNREFUSED]: '
|
|
382
|
-
[Errno.EHOSTDOWN]: '
|
|
383
|
-
[Errno.EHOSTUNREACH]: '
|
|
384
|
-
[Errno.EALREADY]: '
|
|
385
|
-
[Errno.EINPROGRESS]: '
|
|
386
|
-
[Errno.ESTALE]: '
|
|
387
|
-
[Errno.EEUCLEAN]: '
|
|
388
|
-
[Errno.ENOTNAM]: '
|
|
389
|
-
[Errno.ENAVAIL]: '
|
|
390
|
-
[Errno.EISNAM]: '
|
|
391
|
-
[Errno.EREMOTEIO]: '
|
|
392
|
-
[Errno.EDQUOT]: '
|
|
393
|
-
[Errno.ENOMEDIUM]: '
|
|
394
|
-
[Errno.EMEDIUMTYPE]: '
|
|
395
|
-
[Errno.ECANCELED]: '
|
|
396
|
-
[Errno.ENOKEY]: '
|
|
397
|
-
[Errno.EKEYEXPIRED]: '
|
|
398
|
-
[Errno.EKEYREVOKED]: '
|
|
399
|
-
[Errno.EKEYREJECTED]: '
|
|
400
|
-
[Errno.EOWNERDEAD]: '
|
|
401
|
-
[Errno.ENOTRECOVERABLE]: '
|
|
402
|
-
[Errno.ERFKILL]: '
|
|
403
|
-
[Errno.EHWPOISON]: '
|
|
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
|
-
|
|
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/dist/log.js
CHANGED
|
@@ -164,7 +164,7 @@ export function format(entry) {
|
|
|
164
164
|
const formatted = _format(entry);
|
|
165
165
|
return typeof formatted == 'string' ? [formatted] : Array.from(formatted);
|
|
166
166
|
}
|
|
167
|
-
let _output = console.error;
|
|
167
|
+
let _output = 'process' in globalThis ? console.error : console.log;
|
|
168
168
|
function output(entry) {
|
|
169
169
|
if (entry.level > minLevel)
|
|
170
170
|
return;
|