From 7064ddd45e0776cc15403f699275162c7a2c3eed Mon Sep 17 00:00:00 2001 From: Shunta Hayashi <201278530+taiman724@users.noreply.github.com> Date: Wed, 13 May 2026 01:04:15 +0900 Subject: [PATCH] Dedup error message in init --update without --preset path Fixes #179: the error path in updateTalmLibraryChart wrapped the inner error from readChartYamlPreset with a redundant outer message, producing a colon-joined double statement. The inner error already carries a full message and hint. Remove the outer wrap so the error is emitted once. Signed-off-by: Shunta Hayashi <201278530+taiman724@users.noreply.github.com> --- pkg/commands/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/commands/init.go b/pkg/commands/init.go index ebcaa69..fa42c63 100644 --- a/pkg/commands/init.go +++ b/pkg/commands/init.go @@ -1165,7 +1165,8 @@ func updateTalmLibraryChart() error { presetName, err = readChartYamlPreset() if err != nil { - return errors.Wrap(err, "preset is required: use --preset flag or ensure Chart.yaml has a preset dependency") + //nolint:wrapcheck // inner error already carries a full message and hint. + return err } }