Skip to content

Commit 7c8483b

Browse files
Merge pull request #107 from gleanwork/validation-message
fix: Making preflight validation message more clear
2 parents c6c0215 + b83ffcd commit 7c8483b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/configure.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,19 @@ export async function configure(client: string, options: ConfigureOptions) {
123123
trace(`Validating instance: ${options.instance}...`);
124124
if (!(await validateInstance(options.instance))) {
125125
error(`Error validating instance: ${options.instance}`);
126-
console.error(`Could not validate instance: ${options.instance}`);
127-
console.error('Please check the `--instance` and try again.');
126+
console.error();
127+
console.error(
128+
`Unable to establish a connection to Glean instance: ${options.instance}`,
129+
);
130+
console.error();
131+
console.error('Troubleshooting tips:');
132+
console.error(
133+
'1. Check that the instance name is spelled correctly (e.g. "acme" for acme-be.glean.com)',
134+
);
135+
console.error(
136+
' • Visit https://app.glean.com/admin/about-glean and look for "Server instance"',
137+
);
138+
console.error('2. Verify your internet connection and try again');
128139
process.exit(1);
129140
}
130141
}

0 commit comments

Comments
 (0)