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 process-link.ts

Steven Tey406de8519353
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.ts
index c5a47da46d..a3cb96aae7 100644
--- a/apps/web/lib/api/links/process-link.ts
+++ b/apps/web/lib/api/links/process-link.ts
@@ -229,7 +229,7 @@ export async function processLink<T extends Record<string, any>>({
if (parentLink?.userId !== userId) {
return {
link: payload,
- error: "You do not have access to this subdirectory.",
+ error: `You do not have access to create links in the ${domain}/${parentKey}/ subdirectory.`,
code: "forbidden",
};
}