Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 669 Bytes

File metadata and controls

29 lines (16 loc) · 669 Bytes

@google-github-actions/actions-utils


@google-github-actions/actions-utils / errors / isNotFoundError

Function: isNotFoundError()

isNotFoundError(err): boolean

Defined in: errors.ts:75

isNotFoundError determines if the given error is "not found". Since there's literally no way to actually do this in Node, it inspects the string output for "ENOENT".

Parameters

err

unknown

The error result to check.

Returns

boolean

Boolean, true if the error represents NotFound, false otherwise.