Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -3263,6 +3263,61 @@ An unspecified or non-specific system error has occurred within the Node.js
process. The error object will have an `err.info` object property with
additional details.

<a id="ERR_TAR_INVALID_ARCHIVE"></a>

### `ERR_TAR_INVALID_ARCHIVE`

<!-- YAML
added: REPLACEME
-->

Data that was expected to be a tar archive ends before the end of an entry, or
its compressed form could not be decompressed.

<a id="ERR_TAR_INVALID_ENTRY"></a>

### `ERR_TAR_INVALID_ENTRY`

<!-- YAML
added: REPLACEME
-->

The header of a tar archive entry has an invalid checksum or an invalid size,
or a pax extended header exceeds the `maxMetaSize` option. The parser skips
such entries and reports them through the `onwarn` option, unless the `strict`
option is set.

Also thrown when a tar archive is written, for an entry with an invalid field,
or one whose content does not have the size that the entry declares.

<a id="ERR_TAR_UNSAFE_ENTRY"></a>

### `ERR_TAR_UNSAFE_ENTRY`

<!-- YAML
added: REPLACEME
-->

A tar archive entry was not extracted because doing so could write outside of
the extraction directory: its path contains `..` or a null byte, is deeper
than the `maxDepth` option, goes through a symbolic link, or would replace the
extraction directory itself. See [`zlib.extractTar()`][].

<a id="ERR_TAR_UNSUPPORTED_FEATURE"></a>

### `ERR_TAR_UNSUPPORTED_FEATURE`

<!-- YAML
added: REPLACEME
-->

A tar archive uses a feature outside of what this implementation supports:
bzip2 or xz compression, or, when extracting, an entry that is not a file, a
directory, a symbolic link or a hard link. Also thrown when a tar archive is
written, for an entry of a type that cannot be written, and by
`zlib.tarFiles()` for what is not a regular file, a directory or a symbolic
link.

<a id="ERR_TEST_FAILURE"></a>

### `ERR_TEST_FAILURE`
Expand Down Expand Up @@ -4914,6 +4969,7 @@ An error occurred trying to allocate memory. This should never happen.
[`util.parseArgs()`]: util.md#utilparseargsconfig
[`v8.startupSnapshot.setDeserializeMainFunction()`]: v8.md#v8startupsnapshotsetdeserializemainfunctioncallback-data
[`vfs.mount()`]: vfs.md#vfsmount
[`zlib.extractTar()`]: zlib.md#zlibextracttarsource-options
[`zlib`]: zlib.md
[crypto digest algorithm]: crypto.md#cryptogethashes
[debugger]: debugger.md
Expand Down
Loading
Loading