mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
chore: add warn message for GetRemote usage in shortcodes
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if gt $startLine $endLine }}
|
||||
{{ errorf "Code Importer Shortcode - startLine is greater than endLine" . }}
|
||||
{{ errorf "codeimporter shortcode: startLine is greater than endLine" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ $selectedLines := first $endLine $lines }}
|
||||
@@ -23,5 +23,5 @@
|
||||
{{ $codeBlock := printf "```%s\n%s\n```" $type (delimit $selectedLines "\n") }}
|
||||
{{ $codeBlock | markdownify }}
|
||||
{{ else }}
|
||||
{{ errorf "Code Importer Shortcode - Unable to get remote resource" . }}
|
||||
{{ warnf "codeimporter shortcode: unable to fetch %q: %s" $url .Position }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user