Skip to content

Commit 8423187

Browse files
Address PR feedback.
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
1 parent 9b0e4c9 commit 8423187

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

legacy/src/main/java/org/opensearch/sql/legacy/executor/format/ErrorMessage.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
package org.opensearch.sql.legacy.executor.format;
88

9+
import lombok.Getter;
910
import lombok.Setter;
1011
import org.json.JSONObject;
1112
import org.opensearch.rest.RestStatus;
@@ -18,12 +19,9 @@ public class ErrorMessage<E extends Exception> {
1819
private String type;
1920
private String reason;
2021
@Setter
22+
@Getter
2123
private String details;
2224

23-
public String getDetails() {
24-
return details;
25-
}
26-
2725
public ErrorMessage(E exception, int status) {
2826
this.exception = exception;
2927
this.status = status;

legacy/src/main/java/org/opensearch/sql/legacy/plugin/RestSqlAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private void sendResponse(final RestChannel channel, final String message, final
297297

298298
/**
299299
* Report Error message to user.
300-
* @param channel : Rest channel to sent response through.
300+
* @param channel : Rest channel to send response through.
301301
* @param e : Exception caught when attempting query.
302302
* @param status : Status for rest request made.
303303
*/

0 commit comments

Comments
 (0)