MCPcopy Create free account
hub / github.com/METR/vivaria / errorToString

Function errorToString

server/src/util.ts:150–157  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

148}
149
150export function errorToString(error: any): string {
151 switch (error.name) {
152 case 'HttpError': // from @kubernetes/client-node
153 return `Kubernetes HttpError: status=${error.statusCode} body=${JSON.stringify(error.body)}`
154 default:
155 return error.message
156 }
157}
158
159/**
160 * Vivaria has two filesystem caches, one for task image build contexts and the other for

Callers 15

pickRunsMethod · 0.90
startRunMethod · 0.90
decryptAgentTokenMethod · 0.90
onErrorFunction · 0.90
rawRouteHandlerFunction · 0.90
queryRunsFunction · 0.90
general_routes.tsFile · 0.90
hooks_routes.tsFile · 0.90
handleRawRequestFunction · 0.90
raw_routes.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected