Skip to content

Commit

Permalink
fix: modify prefix for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Sep 13, 2024
1 parent 9b28e18 commit 62418e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/kroki/functions/svg.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $ctx := . }}
{{- if not $ctx.type }}
{{- errorf "[kroki] %s" "no diagram type specified" }}
{{- errorf "[github.com/hugomods/kroki] %s" "no diagram type specified" }}
{{- end }}
{{- $type := $ctx.type | lower }}
{{- $body := $ctx.source }}
Expand All @@ -19,9 +19,9 @@
{{- with .Data.Body }}
{{- $err = . }}
{{- end }}
{{- errorf "[kroki] unable to generate diagrams from %q: %s.\n%s" $url $err $body }}
{{- errorf "[github.com/hugomods/kroki] unable to generate diagrams from %q: %s.\n%s" $url $err $body }}
{{- end }}
{{- else }}
{{- errorf "[kroki] unable to generate diagrams from %q.\n%s" $url $body }}
{{- errorf "[github.com/hugomods/kroki] unable to generate diagrams from %q.\n%s" $url $body }}
{{- end }}
{{- return $resp }}

0 comments on commit 62418e1

Please sign in to comment.