feat: better error messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user