errors-spring-boot-starter icon indicating copy to clipboard operation
errors-spring-boot-starter copied to clipboard

Will get null message when locale is not default even if there is default messages.properties

Open dongxuwang opened this issue 4 years ago • 2 comments

For instance, if the locale is en_US and only messages.properties is offered, null will be rendered like this:

#classpath:messages.properties
some_code: Something

Error result:

{
  "errors": [
    {
      "code": "some_code",
      "message": "null"
    }
  ]
}

The result should grab the default message when its locale is not found.

dongxuwang avatar Sep 19 '19 02:09 dongxuwang

Hello @dongxuwang. Hope you're doing well. Unfortunately, I couldn't manage to reproduce the problem you described. I would be grateful if you state the exact steps to reproduce the bug or even provide a sample project.

Thanks for your time and contribution 🙏

alimate avatar Sep 22 '19 18:09 alimate

The issue is wired. It was back to normal after I added a message_en_US.properties and then deleted it. I'll try to reproduce it and continue to focus on this issue.

dongxuwang avatar Sep 23 '19 01:09 dongxuwang