From 88bfd81d10643a7f3a7794ea5c40b7e7205ae521 Mon Sep 17 00:00:00 2001 From: joss-enet Date: Fri, 21 Oct 2022 11:31:26 +0200 Subject: [PATCH] fix: sendError() doesn't throw an error anymore when no format is specified --- adapter/src/debugSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/src/debugSession.ts b/adapter/src/debugSession.ts index e8ac0d6..4d21b1f 100644 --- a/adapter/src/debugSession.ts +++ b/adapter/src/debugSession.ts @@ -462,7 +462,7 @@ export class DebugSession extends ProtocolServer { if (typeof codeOrMessage === 'number') { msg = { id: codeOrMessage, - format: format + format: format ? format : '' }; if (variables) { msg.variables = variables;