Skip to content

Commit 5518f2f

Browse files
authored
add VSCE_DEBUG to spit out error (#1116)
1 parent 3fb6544 commit 5518f2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const pkg = require('../package.json');
1414

1515
function fatal(message: any, ...args: any[]): void {
1616
if (message instanceof Error) {
17+
if (process.env['VSCE_DEBUG']) {
18+
console.error(message);
19+
}
20+
1721
message = message.message;
1822

1923
if (/^cancell?ed$/i.test(message)) {

0 commit comments

Comments
 (0)