Skip to content

Commit

Permalink
Merge pull request #11 from UmaxCode/dev
Browse files Browse the repository at this point in the history
fix: fix data type for message attribute
  • Loading branch information
UmaxCode authored Jan 18, 2025
2 parents dd1a7ef + d0b4ffe commit 052cb2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/umaxcode/exception/ErrorMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
public class ErrorMessage {

private String path;
private Object message;
private String message;
private String timestamp;
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public ErrorMessage handleArgumentNotValidException(MethodArgumentNotValidExcept

return ErrorMessage.builder()
.path(request.getRequestURI())
.message(errors)
.message(errors.toString())
.timestamp(LocalDateTime.now().toString())
.build();
}
Expand Down

0 comments on commit 052cb2b

Please sign in to comment.