Add full path to error messages
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
||||
|
||||
{{ if not $href }}
|
||||
{{ errorf "paige/link: no href" }}
|
||||
{{ errorf "layouts/partials/paige/link.html: no href" }}
|
||||
{{ end }}
|
||||
|
||||
{{ with partial "paige/resource.html" $href }}
|
||||
|
@@ -20,7 +20,7 @@
|
||||
{{ else if eq . "underline" }}
|
||||
{{ $underline = true }}
|
||||
{{ else if ne . "links" }}
|
||||
{{ errorf "paige/menu: invalid menu style: %q" . }}
|
||||
{{ errorf "layouts/partials/paige/menu.html: invalid menu style: %q" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $pills = true }}
|
||||
|
@@ -5,7 +5,7 @@
|
||||
{{ if (urls.Parse $url).Scheme }}
|
||||
{{ with resources.GetRemote $url }}
|
||||
{{ with .Err }}
|
||||
{{ errorf "paige/resource: cannot get remote resource %q: %v" $url . }}
|
||||
{{ errorf "layouts/partials/paige/resource.html: cannot get remote resource %q: %v" $url . }}
|
||||
{{ else }}
|
||||
{{ $result = . }}
|
||||
{{ end }}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
{{ $type := $params.type }}
|
||||
|
||||
{{ if not $src }}
|
||||
{{ errorf "paige/script: no src" }}
|
||||
{{ errorf "layouts/partials/paige/script.html: no src" }}
|
||||
{{ end }}
|
||||
|
||||
{{ with partial "paige/resource.html" $src }}
|
||||
|
Reference in New Issue
Block a user