From d9a5ab85b3d040f37f924b798da77f2437f06717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Wed, 28 Sep 2022 13:28:46 +0200 Subject: [PATCH] Adjust subworkflow with triggers error --- automation/service/trigger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/service/trigger.go b/automation/service/trigger.go index 1c562da83..b6d13eee2 100644 --- a/automation/service/trigger.go +++ b/automation/service/trigger.go @@ -715,7 +715,7 @@ func validateWorkflowTriggers(wf *types.Workflow, tt ...*types.Trigger) (wis typ if wf.Meta != nil && wf.Meta.SubWorkflow { wis = wis.Append( - errors.InvalidData("workflow marked as sub-workflow cannot have triggers"), + errors.InvalidData("workflow marked as sub-workflow cannot have enabled triggers"), map[string]int{"trigger": i}, ) }