From 5c96bda70a7afb2ce97cbb3cd70c64fc8cb94446 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Thu, 12 May 2022 11:43:20 +0200 Subject: errors: Misc improvements * Redo the server error template * Always add the content file context if relevant * Remove some now superflous error string matching * Move the server error template to _server/error.html * Add file context (with position) to codeblock render blocks * Improve JS build errors Fixes #9892 Fixes #9891 Fixes #9893 --- langs/i18n/translationProvider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'langs') diff --git a/langs/i18n/translationProvider.go b/langs/i18n/translationProvider.go index 52f9349c2..4c0934bad 100644 --- a/langs/i18n/translationProvider.go +++ b/langs/i18n/translationProvider.go @@ -138,6 +138,6 @@ func errWithFileContext(inerr error, r source.File) error { } defer f.Close() - return herrors.NewFileError(realFilename, inerr).UpdateContent(f, herrors.SimpleLineMatcher) + return herrors.NewFileError(realFilename, inerr).UpdateContent(f, nil) } -- cgit v1.2.3