Skip to content

Commit

Permalink
Tweak in-page error display
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed Jul 26, 2017
1 parent fce872d commit 83695ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (s *Server) handler(rw http.ResponseWriter, r *http.Request) {
eng := liquid.NewEngine()
excerpt, path := fileErrorContext(err)
out, e := eng.ParseAndRenderString(renderErrorTemplate, liquid.Bindings{
"error": err,
"error": fmt.Sprint(err),
"excerpt": excerpt,
"path": path,
"watch": site.Config().Watch,
Expand Down Expand Up @@ -133,7 +133,7 @@ const renderErrorTemplate = `<html><head>
code { font-size: xx-large; }
.line.error .gutter::before { content: "⚠️"; width: 0; float:left; }
.line.error, .line.error .lineno { color: red; }
.lineno { color: #6D7891; border-right: 1px solid #6D7891; padding-right: 10px; margin: 0 10px 0 55px; display: inline-block; text-align: right; }
.lineno { color: #6D7891; border-right: 1px solid #6D7891; padding-right: 10px; margin: 0 10px 0 5px; display: inline-block; text-align: right; width: 3em; }
footer { border-top: 1px solid #6D7891; margin-top: 5ex; padding-top: 5px; }
</style>
</head>
Expand Down

0 comments on commit 83695ac

Please sign in to comment.