File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments