Skip to content

Commit

Permalink
better template load error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Apr 30, 2021
1 parent f799d71 commit b889152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.go
Expand Up @@ -304,7 +304,7 @@ func makeErrorReporter() (proxy.Reporter, error) {
if opts.ErrorReport.Template != "" {
data, err := ioutil.ReadFile(opts.ErrorReport.Template)
if err != nil {
return nil, fmt.Errorf("failed to load error html template, %w", err)
return nil, fmt.Errorf("failed to load error html template from %s, %w", opts.ErrorReport.Template, err)
}
result.Template = string(data)
}
Expand Down

0 comments on commit b889152

Please sign in to comment.