mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 18:01:02 +00:00
fix error message
This commit is contained in:
parent
3e60ff9e2e
commit
23ad363c97
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue