Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/denoland/std
/ mapError
Function
mapError
fs/_map_error.ts:26–29 ·
view source on GitHub ↗
(e: E)
Source
from the content-addressed store, hash-verified
24
}
25
26
export
function
mapError<E>(e: E) {
27
if
(!isNodeErr(e))
return
e;
28
return
map[e.code]?.(e) || e;
29
}
Callers
15
readDir
Function · 0.90
readDirSync
Function · 0.90
mkdir
Function · 0.90
mkdirSync
Function · 0.90
open
Function · 0.90
openSync
Function · 0.90
writeTextFile
Function · 0.90
writeTextFileSync
Function · 0.90
truncate
Function · 0.90
truncateSync
Function · 0.90
symlink
Function · 0.90
symlinkSync
Function · 0.90
Calls
1
isNodeErr
Function · 0.85
Tested by
no test coverage detected