feat: better error messages

This commit is contained in:
2026-03-25 14:38:40 +01:00
parent 9ec4c5319c
commit a935d61531
5 changed files with 69 additions and 2 deletions

View File

@@ -38,8 +38,8 @@ const onSubmit = async (event: FormSubmitEvent<Schema>) => {
toast.add({ title: "Link created", color: "success" });
}
emit("close", true);
} catch {
toast.add({ title: "Something went wrong", color: "error" });
} catch (error) {
toast.add({ title: getApiError(error), color: "error" });
} finally {
submitting.value = false;
}