-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix mail template error #29410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mail template error #29410
Conversation
log.Error("Failed to parse template [%s/body]: %v", name, err) | ||
if !setting.IsProd { | ||
log.Fatal("Please fix the mail template error") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm of the opinion that behaviour differences between RUN_MODE should be kept minimal. Is it warranted here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think it should also "Fatal" (just like web page HTML templates)
But the old code just reports the error message and continues. So I chose to keep the old behavior at the moment.
So I think it is warranted that "the behavior is the same as the old code and the change is minimal", but it doesn't warrant that "the behavior is the same for production/dev"
Feel free to change the behavior.
* giteaofficial/main: Fix mail template error (go-gitea#29410) Document our issue locking policy (go-gitea#29433) Fix htmx rendering the login page in frame on session logout (go-gitea#29405) Ignore empty repo for CreateRepository in action notifier (go-gitea#29416) Fix incorrect tree path value for patch editor (go-gitea#29377) Fix logic error from go-gitea#28138 (go-gitea#29417)
A mistake by #29392