We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e1bf2 commit 6d99443Copy full SHA for 6d99443
src/main.ts
@@ -10,14 +10,20 @@ const pkg = require('../package.json');
10
11
function fatal<T>(message: any, ...args: any[]): void {
12
if (message instanceof Error) {
13
- if (/^cancell?ed$/i.test(message.message)) {
+ message = message.message;
14
+
15
+ if (/^cancell?ed$/i.test(message)) {
16
return;
17
}
-
- message = message.message;
18
19
20
console.error('Error:', message, ...args);
21
22
+ if (/Unauthorized\(401\)/.test(message)) {
23
+ console.error(`Be sure to use a Personal Access Token which has access to **all accessible accounts**.
24
+See https://code.visualstudio.com/docs/tools/vscecli#_common-questions for more information.`);
25
+ }
26
27
process.exit(1);
28
29
0 commit comments