Skip to content

Commit

Permalink
Fix error page if location is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed May 7, 2023
1 parent 8c34e2b commit be3ca9c
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 110 deletions.
218 changes: 109 additions & 109 deletions assets.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/templates/error.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $error := .error }}{{ $llen := len .location }}<!DOCTYPE html>
{{ $error := .error }}{{ $llen := 0 }}{{ if .location }}{{ $llen := len .location }}{{ end }}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
Expand Down

0 comments on commit be3ca9c

Please sign in to comment.