Skip to content

Commit fb2d4b9

Browse files
committed
1 parent 71b845c commit fb2d4b9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/workbench/contrib/debug/browser/debugService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ export class DebugService implements IDebugService {
348348
}
349349

350350
if (configOrName && !config) {
351-
const message = !!launch ? nls.localize('configMissing', "Configuration '{0}' is missing in 'launch.json'.", typeof configOrName === 'string' ? configOrName : JSON.stringify(configOrName)) :
352-
nls.localize('launchJsonDoesNotExist', "'launch.json' does not exist.");
351+
const message = !!launch ? nls.localize('configMissing', "Configuration '{0}' is missing in 'launch.json'.", typeof configOrName === 'string' ? configOrName : configOrName.name) :
352+
nls.localize('launchJsonDoesNotExist', "'launch.json' does not exist for passed workspace folder.");
353353
throw new Error(message);
354354
}
355355

@@ -358,6 +358,7 @@ export class DebugService implements IDebugService {
358358
return result;
359359
} catch (err) {
360360
// make sure to get out of initializing state, and propagate the result
361+
this.notificationService.error(err);
361362
this.endInitializingState();
362363
return Promise.reject(err);
363364
}

0 commit comments

Comments
 (0)