Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Effect-TS/effect
/ toError
Function
toError
packages/platform-node-shared/src/internal/commandExecutor.ts:25–25 ·
view source on GitHub ↗
(err: unknown)
Source
from the content-addressed store, hash-verified
23
typeof output ===
"string"
? output :
"pipe"
24
25
const
toError = (err: unknown): Error => err instanceof globalThis.Error ? err :
new
globalThis.Error(String(err))
26
27
const
toPlatformError = (
28
method: string,
Callers
1
runCommand
Function · 0.85
Calls
1
String
Interface · 0.85
Tested by
no test coverage detected