MCPcopy Create free account
hub / github.com/Effect-TS/effect / handleBadArgument

Function handleBadArgument

packages/platform/node-shared/src/NodeFileSystem.ts:28–33  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

26import { handleErrnoException } from "./internal/utils.ts"
27
28const handleBadArgument = (method: string) => (err: unknown) =>
29 Error.badArgument({
30 module: "FileSystem",
31 method,
32 description: (err as Error).message ?? String(err)
33 })
34
35// == access
36

Callers 8

NodeFileSystem.tsFile · 0.85
makeTempDirectoryFactoryFunction · 0.85
removeFactoryFunction · 0.85
openFactoryFunction · 0.85
nodeReadFactoryFunction · 0.85
nodeWriteFactoryFunction · 0.85
readFileFunction · 0.85
writeFileFunction · 0.85

Calls 1

StringInterface · 0.50

Tested by

no test coverage detected