From bb72eee06d31bd0e4108a0f547c2db80fa2c2810 Mon Sep 17 00:00:00 2001 From: isidor Date: Tue, 31 Jan 2017 16:33:07 +0100 Subject: [PATCH] debug: better error handling for wrong compound configuraitons fixes #16615 --- src/vs/workbench/parts/debug/electron-browser/debugService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/workbench/parts/debug/electron-browser/debugService.ts b/src/vs/workbench/parts/debug/electron-browser/debugService.ts index 6d8b6ef60d2..d64ac913132 100644 --- a/src/vs/workbench/parts/debug/electron-browser/debugService.ts +++ b/src/vs/workbench/parts/debug/electron-browser/debugService.ts @@ -573,6 +573,9 @@ export class DebugService implements debug.IDebugService { return TPromise.join(compound.configurations.map(name => this.createProcess(name))); } const config = typeof configurationOrName === 'string' ? this.configurationManager.getConfiguration(configurationOrName) : configurationOrName; + if (!config) { + return TPromise.wrapError(new Error(nls.localize('configMissing', "Configuration '{0}' is missing in 'launch.json'.", configurationOrName))); + } return this.configurationManager.resloveConfiguration(config).then(resolvedConfig => { if (!resolvedConfig) {