Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update errors.ts

Kiran K1448e1567f0f
diff --git a/apps/web/lib/api/errors.ts b/apps/web/lib/api/errors.ts
index c4e623f8d4..c58d3eabf8 100644
--- a/apps/web/lib/api/errors.ts
+++ b/apps/web/lib/api/errors.ts
@@ -66,6 +66,7 @@ export function fromZodError(error: z.ZodError): ErrorResponse {
const [issue] = error.issues;
// Custom business rules already include human-readable messages.
+ // Example: "custom: description: Description is required..." → "Description is required..."
if (error.issues.length === 1 && issue.code === "custom") {
return {
error: {