fix(ui/org): failures read from the error catalogue

This commit is contained in:
sam committed 2026-11-13 13:41:32 +11:00
1 parent cdd636d5aa
commit 47a340bf79
47 files changed
+236 -104

No files matched your search

+3 -1
View File
@@ -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>