-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add nicer error handling on template compile errors #21350
Merged
zeripath
merged 8 commits into
go-gitea:main
from
zeripath:ref-21344-when-panic-in-compile-try-to-find-template-file
Oct 7, 2022
Merged
Add nicer error handling on template compile errors #21350
zeripath
merged 8 commits into
go-gitea:main
from
zeripath:ref-21344-when-panic-in-compile-try-to-find-template-file
Oct 7, 2022
Commits on Oct 5, 2022
-
Add nicer error handling on template compile errors
There are repeated issues reported whereby users are unable to interpret the template errors. This PR adds some (somewhat complex) error handling to the panic recovery for template renderering but hopefully makes the interpretation of the error easier. Reference go-gitea#21344 Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for 9b04b5e - Browse repository at this point
Copy the full SHA 9b04b5eView commit details
Commits on Oct 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for be8d435 - Browse repository at this point
Copy the full SHA be8d435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b20e77 - Browse repository at this point
Copy the full SHA 8b20e77View commit details -
Update modules/templates/static.go
Co-authored-by: delvh <dev.lh@web.de>
Configuration menu - View commit details
-
Copy full SHA for 5d086bb - Browse repository at this point
Copy the full SHA 5d086bbView commit details -
remove stacktrace and slightly adjust message
Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for 62fd926 - Browse repository at this point
Copy the full SHA 62fd926View commit details -
And handle the final panic too
Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for 297f862 - Browse repository at this point
Copy the full SHA 297f862View commit details
Commits on Oct 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e7d31f3 - Browse repository at this point
Copy the full SHA e7d31f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8caef00 - Browse repository at this point
Copy the full SHA 8caef00View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.