MCPcopy Create free account
hub / github.com/Snapchat/Valdi / createUserError

Function createUserError

valdi/vscode_debugger/src/dap/errors.ts:52–61  ·  view source on GitHub ↗
(text: string, code = ErrorCodes.UserError)

Source from the content-addressed store, hash-verified

50}
51
52export function createUserError(text: string, code = ErrorCodes.UserError): Dap.Error {
53 return {
54 __errorMarker: true,
55 error: {
56 id: code,
57 format: text,
58 showUser: true,
59 },
60 };
61}
62
63export const nvmNotFound = () =>
64 createUserError(

Callers 15

nvmNotFoundFunction · 0.85
nvsNotFoundFunction · 0.85
nvmHomeNotFoundFunction · 0.85
nvmVersionNotFoundFunction · 0.85
cannotLaunchInTerminalFunction · 0.85
cannotFindNodeBinaryFunction · 0.85
nodeBinaryOutOfDateFunction · 0.85
invalidHitConditionFunction · 0.85
profileCaptureErrorFunction · 0.85
invalidConcurrentProfileFunction · 0.85
browserNotFoundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected