summaryrefslogtreecommitdiffstats
path: root/commands/server_errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/server_errors.go')
-rw-r--r--commands/server_errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server_errors.go b/commands/server_errors.go
index 1a469dac8..8ee02e5f2 100644
--- a/commands/server_errors.go
+++ b/commands/server_errors.go
@@ -72,7 +72,7 @@ var buildErrorTemplate = `<!doctype html>
<main>
{{ highlight .Error "apl" "noclasses=true,style=monokai" }}
{{ with .File }}
- {{ $params := printf "noclasses=true,style=monokai,linenos=table,hl_lines=%d,linenostart=%d" (add .Pos 1) .LineNumber }}
+ {{ $params := printf "noclasses=true,style=monokai,linenos=table,hl_lines=%d,linenostart=%d" (add .Pos 1) (sub .LineNumber .Pos) }}
{{ $lexer := .ChromaLexer | default "go-html-template" }}
{{ highlight (delimit .Lines "\n") $lexer $params }}
{{ end }}