From 63867d56fe8dcbaa481efd168b23496253217be4 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Thu, 16 Jan 2025 07:16:06 -0800 Subject: [PATCH] Use warnf instead of errorf in try-catch example --- content/en/functions/go-template/try.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/go-template/try.md b/content/en/functions/go-template/try.md index 2d2aa4268..be2101625 100644 --- a/content/en/functions/go-template/try.md +++ b/content/en/functions/go-template/try.md @@ -100,7 +100,7 @@ Instead of failing the build, we can catch the error and emit a warning: {{ else with .Value }} {{ else }} - {{ errorf "Unable to get remote resource %q" $url }} + {{ warnf "Unable to get remote resource %q" $url }} {{ end }} {{ end }} ```