MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isExecFileError

Function isExecFileError

packages/plugins/onepassword/src/sdk/op-cli.ts:31–34  ·  view source on GitHub ↗
(
  error: unknown,
)

Source from the content-addressed store, hash-verified

29}
30
31const isExecFileError = (
32 error: unknown,
33): error is NodeJS.ErrnoException & { readonly killed?: boolean } =>
34 typeof error === "object" && error !== null && "message" in error;
35
36const describeSpawnError = (error: unknown): string => {
37 if (isExecFileError(error)) {

Callers 2

describeSpawnErrorFunction · 0.85
opCliExecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected