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

Function handleBadArgument

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

Source from the content-addressed store, hash-verified

29import { handleErrnoException } from "./internal/utils.ts"
30
31const handleBadArgument = (method: string) => (err: unknown) =>
32 Error.badArgument({
33 module: "FileSystem",
34 method,
35 description: (err as Error).message ?? String(err)
36 })
37
38const bigintToNumber = (value: bigint, field: string): number => {
39 const number = Number(value)

Callers 12

positionToNumberFunction · 0.85
NodeFileSystem.tsFile · 0.85
makeTempDirectoryFactoryFunction · 0.85
removeFactoryFunction · 0.85
openFactoryFunction · 0.85
nodeReadFactoryFunction · 0.85
nodeWriteFactoryFunction · 0.85
readAllocMethod · 0.85
readFileFunction · 0.85
makeFileInfoFunction · 0.85
statFactoryFunction · 0.85
writeFileFunction · 0.85

Calls 1

StringFunction · 0.50

Tested by

no test coverage detected