(context: string, err: unknown)
| 388 | } |
| 389 | |
| 390 | function recordError(context: string, err: unknown) { |
| 391 | console.error(context, err); |
| 392 | if (err instanceof Error && err.message) { |
| 393 | errorMessage.value = err.message; |
| 394 | } else { |
| 395 | errorMessage.value = String(err); |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | function configGpu(form: { attachAllGpus: boolean; selectedGpus: string[] }, isUpdate: boolean = false): VmmTypes.IGpuConfig | undefined { |
| 400 | if (form.attachAllGpus) { |
no outgoing calls
no test coverage detected