Skip to content

Commit 83695ac

Browse files
committed
Tweak in-page error display
1 parent fce872d commit 83695ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (s *Server) handler(rw http.ResponseWriter, r *http.Request) {
8484
eng := liquid.NewEngine()
8585
excerpt, path := fileErrorContext(err)
8686
out, e := eng.ParseAndRenderString(renderErrorTemplate, liquid.Bindings{
87-
"error": err,
87+
"error": fmt.Sprint(err),
8888
"excerpt": excerpt,
8989
"path": path,
9090
"watch": site.Config().Watch,
@@ -133,7 +133,7 @@ const renderErrorTemplate = `<html><head>
133133
code { font-size: xx-large; }
134134
.line.error .gutter::before { content: "⚠️"; width: 0; float:left; }
135135
.line.error, .line.error .lineno { color: red; }
136-
.lineno { color: #6D7891; border-right: 1px solid #6D7891; padding-right: 10px; margin: 0 10px 0 55px; display: inline-block; text-align: right; }
136+
.lineno { color: #6D7891; border-right: 1px solid #6D7891; padding-right: 10px; margin: 0 10px 0 5px; display: inline-block; text-align: right; width: 3em; }
137137
footer { border-top: 1px solid #6D7891; margin-top: 5ex; padding-top: 5px; }
138138
</style>
139139
</head>

0 commit comments

Comments
 (0)