fix(errors): unify backend error protocol and preserve db detail
This commit is contained in:
1 parent
f1617bbd87
commit
c8c40ba839
24 files changed
+1197
-182
No files matched your search
@@ -148,7 +148,7 @@ async function loadTopics(force = false) {
|
||||
try {
|
||||
await topicSelectRef.value?.loadTopics();
|
||||
} catch (e: unknown) {
|
||||
error.value = translateBackendError(t, formatError(e));
|
||||
error.value = translateBackendError(t, e);
|
||||
} finally {
|
||||
topicsLoading.value = false;
|
||||
}
|
||||
@@ -261,7 +261,7 @@ async function loadRuntimeClients() {
|
||||
}
|
||||
} catch (e: unknown) {
|
||||
if (isRuntimeLoadCurrent(loadSeq, currentKey)) {
|
||||
error.value = translateBackendError(t, formatError(e)) || String(e);
|
||||
error.value = translateBackendError(t, e);
|
||||
}
|
||||
} finally {
|
||||
if (loadSeq === runtimeLoadSeq) {
|
||||
|
||||
Reference in new issue
Block a user