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.

improve error message

Steven Tey89d8a66adc22
diff --git a/apps/web/lib/auth/workspace-edge.ts b/apps/web/lib/auth/workspace-edge.ts
index 765f6c7adb..c665e1c810 100644
--- a/apps/web/lib/auth/workspace-edge.ts
+++ b/apps/web/lib/auth/workspace-edge.ts
@@ -108,7 +108,7 @@ export const withWorkspaceEdge = (
throw new DubApiError({
code: "not_found",
message:
- "Workspace id not found. Did you forget to include a `workspaceId` query parameter? Learn more: https://d.to/id",
+ "Workspace ID not found. Did you forget to include a `workspaceId` query parameter? It looks like you might be using personal API keys, we also recommend refactoring to workspace API keys: https://d.to/keys",
});
}
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 371db71be4..3d3579a009 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -118,7 +118,7 @@ export const withWorkspace = (
throw new DubApiError({
code: "not_found",
message:
- "Workspace id not found. Did you forget to include a `workspaceId` query parameter? Learn more: https://d.to/id",
+ "Workspace ID not found. Did you forget to include a `workspaceId` query parameter? It looks like you might be using personal API keys, we also recommend refactoring to workspace API keys: https://d.to/keys",
});
}
}