Skip to content

Commit 6781efd

Browse files
authored
Fix readme error reporting (#1533)
1 parent a0faa90 commit 6781efd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common-theme/layouts/partials/block/readme.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
{{ errorf "Couldn't find readme at %s" $blockData.api }}
99
{{ end }}
1010

11+
{{ $pageTitle := .Page.Title }}
12+
1113
{{ with $response }}
1214
{{ with .Err }}
13-
{{ errorf "Failed %s on %s. Error: %s" $blockData.api .Page.Title .Err }}
15+
{{ errorf "Failed %s on %s. Error: %s" $blockData.api $pageTitle . }}
1416
{{ end }}
1517

1618
{{ $response := .Content | unmarshal }}

0 commit comments

Comments
 (0)