sk0x50 commented on code in PR #926:
URL: https://github.com/apache/ignite-3/pull/926#discussion_r916302388
##########
modules/rest-api/src/test/java/org/apache/ignite/internal/rest/exception/handler/IgniteExceptionHandlerTest.java:
##########
@@ -64,7 +68,7 @@ static Stream<Arguments> igniteExceptions() {
Problem.builder()
.status(500)
.title("Internal Server Error")
- .code(UNKNOWN_ERR)
+ .code(humanReadableCode)
.detail(errorMessage + " Ooops")
Review Comment:
Yep, `errorMessage` contains `traceId`, human-readable code and detailed
message. However, I think it would be useful to get an additional field that
provides an error code explicitly and so, the end-user doesn't need to parse
the `errorMessage` string for that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]