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 route.ts

Kiran K84f8d4d63460
diff --git a/apps/web/app/api/utm/[id]/route.ts b/apps/web/app/api/utm/[id]/route.ts
index 2f83e4e53e..ebddd26359 100644
--- a/apps/web/app/api/utm/[id]/route.ts
+++ b/apps/web/app/api/utm/[id]/route.ts
@@ -94,7 +94,7 @@ export const DELETE = withWorkspace(
if (template.partnerGroup) {
throw new DubApiError({
code: "conflict",
- message: "Cannot delete a template that is associated with a group.",
+ message: `This template is linked to the partner group "${template.partnerGroup.name}" and cannot be deleted.`,
});
}