(error: any)
| 148 | } |
| 149 | |
| 150 | export 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 |
no outgoing calls
no test coverage detected