chore: fix a typo (#16104)

This commit is contained in:
Gallardot 2024-06-04 14:01:06 +08:00 committed by GitHub
parent 7ae9ca5a33
commit 4f6e7159b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ public class ApiExceptionHandler {
@ExceptionHandler(Throwable.class)
public Result<Object> exceptionHandler(Throwable e, HandlerMethod hm) {
ApiException ce = hm.getMethodAnnotation(ApiException.class);
log.error("Meet en unknown exception: ", e);
log.error("Meet an unknown exception: ", e);
if (ce == null) {
return Result.errorWithArgs(Status.INTERNAL_SERVER_ERROR_ARGS, e.getMessage());
}