Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segment-boneyard/nightmare
/ error
Function
error
lib/preload.js:100–108 ·
view source on GitHub ↗
* Make errors serializeable
(err)
Source
from the content-addressed store, hash-verified
98
*/
99
100
function
error(err) {
101
if
(!(err instanceof Error))
return
err
102
return
{
103
code: err.code,
104
message: err.message,
105
details: err.detail,
106
stack: err.stack ||
''
107
}
108
}
Callers
1
preload.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected