MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / recordError

Function recordError

vmm/ui/src/composables/useVmManager.ts:390–397  ·  view source on GitHub ↗
(context: string, err: unknown)

Source from the content-addressed store, hash-verified

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) {

Callers 15

loadVMListFunction · 0.85
refreshExpandedVMsFunction · 0.85
loadVMDetailsFunction · 0.85
loadImagesFunction · 0.85
loadGpusFunction · 0.85
createVmFunction · 0.85
updateVMFunction · 0.85
cloneConfigFunction · 0.85
startVmFunction · 0.85
shutdownVmFunction · 0.85
stopVmFunction · 0.85
removeVmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected