fix(ui/org): failures read from the error catalogue
This commit is contained in:
47 files changed
+236
-104
No files matched your search
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { errors } from "@/copy/errors";
|
||||
import { describeError } from "@/lib/api";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { computed, onMounted, ref, watch } from "vue";
|
||||
@@ -30,7 +32,7 @@ onMounted(async () => {
|
||||
try {
|
||||
await orgStore.loadOrg();
|
||||
} catch (cause) {
|
||||
error.value = String((cause as Error).message || cause);
|
||||
error.value = describeError(cause, errors.common.unknown);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user