Skip to content

Conversation

@testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
akaroml
akaroml previously approved these changes Nov 29, 2017
} else if (ex != null) {
logger.log(Level.SEVERE, String.format("DebugSession dispatch exception: %s", ex.toString()), ex);
} else {
logger.log(Level.SEVERE, "The request dispatcher should not return null response.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just throw an exception with some message and the exceptionally will catch that.

sendResponse(response);
} else if (ex instanceof DebugException) {
sendResponse(AdapterUtils.setErrorResponse(response,
ErrorCode.parse(((DebugException) ex).getErrorCode()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much indention.

} else {
logger.log(Level.SEVERE, "The request dispatcher should not return null response.");
sendResponse(AdapterUtils.setErrorResponse(response,
ErrorCode.UNKNOWN_FAILURE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much indention.

@testforstephen testforstephen merged commit 6aefe96 into master Nov 29, 2017
@testforstephen testforstephen deleted the jinbo_launchInTerminal1 branch November 29, 2017 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants