I18N Service Plugins - Improve Error Messaging #748
Labels
feature
good first issue
An issue that is not too complicated to resolve, and it's an ideal issue for new contributors.
This is:
Detailed Description
Currently, if a user forgets to pass the
I18N_API_URL
into the serverless component (serverless.yml
), the whole service would not work at all.And if you open the CloudWatch log, you can see the following error:
Possible Solution
This error probably won't mean a lot to the user, so let's make it a bit more friendly.
Let's check the passed env variable here:
packages/api-i18n/src/plugins/service.ts:32
.If it doesn't exist, or it's not a valid URL, we should throw an error message like
This is just a quick example. Of course, you are allowed to use your imagination / be creative 😃
The text was updated successfully, but these errors were encountered: