MCPcopy Index your code
hub / github.com/coder/code-server / isNodeJSErrnoException

Function isNodeJSErrnoException

src/node/util.ts:498–500  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

496 * it has a .code property.
497 */
498export function isNodeJSErrnoException(error: unknown): error is NodeJS.ErrnoException {
499 return error !== undefined && (error as NodeJS.ErrnoException).code !== undefined
500}
501
502// TODO: Replace with proper templating system.
503export const escapeJSON = (value: cp.Serializable) => JSON.stringify(value).replace(/"/g, """)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected