Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexkit/magic-context
/ safeString
Function
safeString
packages/plugin/src/shared/error-message.ts:109–115 ·
view source on GitHub ↗
(value: unknown)
Source
from the content-addressed store, hash-verified
107
}
108
109
function
safeString(value: unknown): string {
110
try {
111
return
String(value);
112
} catch {
113
return
"<unstringifiable>"
;
114
}
115
}
Callers
1
describeError
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected