Skip to content

Commit 9198c41

Browse files
committed
show error msg when parse failed in launch.json
1 parent d538347 commit 9198c41

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DebugConfigGenerator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export abstract class IDebugConfigGenerator {
6767
this.loadOk = true;
6868
} catch (error) {
6969
this.loadOk = false;
70-
GlobalEvent.emit('msg', newMessage('Warning', 'parse \'launch.json\' error !'));
70+
const msg = `launch.json('${_launchFile.path}') format error !, msg:${(<Error>error).message}`;
71+
GlobalEvent.emit('msg', newMessage('Warning', msg));
7172
}
7273
}
7374

0 commit comments

Comments
 (0)