From ff5911c9d09a0eba344ee8b7da1d3511b648a10f Mon Sep 17 00:00:00 2001 From: isidor Date: Wed, 30 Mar 2016 11:24:46 +0200 Subject: [PATCH] debug improve error messages when launching adapter #4735 --- src/vs/workbench/parts/debug/node/rawDebugSession.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/debug/node/rawDebugSession.ts b/src/vs/workbench/parts/debug/node/rawDebugSession.ts index e2a11134eb02f..1359762e96222 100644 --- a/src/vs/workbench/parts/debug/node/rawDebugSession.ts +++ b/src/vs/workbench/parts/debug/node/rawDebugSession.ts @@ -244,7 +244,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes if (launch.command === 'node') { stdfork.fork(launch.argv[0], launch.argv.slice(1), {}, (err, child) => { if (err) { - e(new Error(nls.localize('unableToLaunchDebugAdapter', "Unable to launch debug adapter from {0}.", launch.argv[0]))); + e(new Error(nls.localize('unableToLaunchDebugAdapter', "Unable to launch debug adapter from '{0}'.", launch.argv[0]))); } this.serverProcess = child; c(null); @@ -304,7 +304,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes if (exists) { c(null); } else { - e(new Error(nls.localize('debugAdapterBinNotFound', "DebugAdapter bin folder not found on path {0}.", this.adapter.program))); + e(new Error(nls.localize('debugAdapterBinNotFound', "Debug adapter executable '{0}' not found.", this.adapter.program))); } }); }).then(() => {