From 23ad363c97b9ef2aca9e18a1ad66c7ab5ccbda69 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 10 Aug 2023 00:01:16 +0200 Subject: [PATCH] fix error message --- pipeline/frontend/yaml/parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/frontend/yaml/parse.go b/pipeline/frontend/yaml/parse.go index 79a0a07eb..50226b522 100644 --- a/pipeline/frontend/yaml/parse.go +++ b/pipeline/frontend/yaml/parse.go @@ -19,12 +19,12 @@ func ParseBytes(b []byte) (*types.Workflow, error) { // fail hard on deprecated branch filter if out.BranchesDontUseIt != nil { - return nil, fmt.Errorf("\"branches:\" filter got removed, use \"branch\" in global when filter") + return nil, fmt.Errorf("\"branches:\" filter got removed, use \"branch\" in global when filter instead") } // fail hard on deprecated pipeline keyword if len(out.PipelineDontUseIt.ContainerList) != 0 { - return nil, fmt.Errorf("\"pipeline:\" got removed, user \"steps:\"") + return nil, fmt.Errorf("\"pipeline:\" got removed, use \"steps:\" instead") } // support deprecated platform filter