Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Log error when continue fails in the normal case
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jan 18, 2019
1 parent 45e6b64 commit 4226264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,12 @@ class GoDebugSession extends LoggingDebugSession {
};

// If called when setting breakpoint internally, we want the error to bubble up.
const errorCallback = calledWhenSettingBreakpoint ? null : callback;
const errorCallback = calledWhenSettingBreakpoint ? null : (err) => {
if (err) {
logError('Failed to continue - ' + err.toString());
}
this.handleReenterDebug('breakpoint');
};

return this.delve.callPromise('Command', [{ name: 'continue' }]).then(callback, errorCallback);
}
Expand Down

0 comments on commit 4226264

Please sign in to comment.