Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@impactmass
Copy link
Contributor

Resolves: N/A
Impact: minor
Type: chore

Issue

Following comments on #5505, the error message from the function will be helpful if it shows the template name. That way a dev can track the missing template.

Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kieckhafer
Copy link
Member

I think this looks good.

I think there could be a reason to check for templateName as well, maybe earlier in the function, however if the templateName is undefined, the error message will be No email template undefined found for language ${language}, so that'll give an indication you need to pass it anyway.

@impactmass
Copy link
Contributor Author

impactmass commented Sep 23, 2019

Thanks. I agree with your later point: if it's undefined, the error message will still shows it, and then can be fixed where the function was called.

@kieckhafer kieckhafer merged commit 859b2c4 into develop Sep 23, 2019
@kieckhafer kieckhafer deleted the impactmass-error-line-fix branch September 23, 2019 17:21
@kieckhafer kieckhafer mentioned this pull request Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants