Skip to content

Commit

Permalink
feat: friendly error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Sep 1, 2024
1 parent 6931b9d commit 1df463d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/workspace/new-file-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function NewFileForm({
await refreshFileExplorer();
onSubmit?.(data.path);
} catch (err) {
form.setError("path", { message: String(err) });
form.setError("path", { message: "Path already exists." });
}
}

Expand Down

0 comments on commit 1df463d

Please sign in to comment.