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 error message

Kiran Ke72bd4bb75bd
diff --git a/apps/web/app/api/links/[linkId]/route.ts b/apps/web/app/api/links/[linkId]/route.ts
index 8f284e46a3..e9e3924cb5 100644
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@ -180,7 +180,7 @@ export const DELETE = withWorkspace(
if (link.programId) {
throw new DubApiError({
code: "forbidden",
- message: "Cannot delete program links.",
+ message: "You can't delete a link that's part of a program.",
});
}