witnora 0.20.14 → 0.20.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials.js +2 -1
- package/package.json +1 -1
package/dist/credentials.js
CHANGED
|
@@ -68,7 +68,8 @@ export function resolveOnboardServer(options) {
|
|
|
68
68
|
const server = env.WITNORA_BASE_URL ?? env.AGENTCERT_BASE_URL;
|
|
69
69
|
const projectId = env.WITNORA_BASE_URL !== undefined ? env.WITNORA_PROJECT_ID : env.AGENTCERT_PROJECT_ID;
|
|
70
70
|
if (server && projectId && projectId !== options.projectId) {
|
|
71
|
-
|
|
71
|
+
const projectVariable = env.WITNORA_BASE_URL !== undefined ? "WITNORA_PROJECT_ID" : "AGENTCERT_PROJECT_ID";
|
|
72
|
+
throw new Error(`Onboarding project "${options.projectId}" differs from environment project "${projectId}". Update or unset ${projectVariable}, or pass --server <url> explicitly to choose the intended server; no authorization request was sent.`);
|
|
72
73
|
}
|
|
73
74
|
return normalizeServer(server ?? DEFAULT_WITNORA_SERVER);
|
|
74
75
|
}
|