Skip to content

Commit

Permalink
debug: await handler's result
Browse files Browse the repository at this point in the history
A debug request handler can be implemented returning a Promise, which is
not awaited. This commit adds the missing `await` statement.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
  • Loading branch information
paul-marechal committed Jun 29, 2020
1 parent e4d87c7 commit 7c8ca72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/debug/src/browser/debug-session-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class DebugSessionConnection implements Disposable {
const handler = this.requestHandlers.get(request.command);
if (handler) {
try {
response.body = handler(request);
response.body = await handler(request);
} catch (error) {
response.success = false;
response.message = error.message;
Expand Down

0 comments on commit 7c8ca72

Please sign in to comment.