mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
[FORGEJO] when a workflow decode error happen, log and do not crash
This commit is contained in:
parent
81c1530fce
commit
61b7859f12
2 changed files with 20 additions and 1 deletions
|
@ -749,7 +749,7 @@ func (w *Workflow) GetJobIDs() []string {
|
|||
}
|
||||
|
||||
var OnDecodeNodeError = func(node yaml.Node, out interface{}, err error) {
|
||||
log.Fatalf("Failed to decode node %v into %T: %v", node, out, err)
|
||||
log.Errorf("Failed to decode node %v into %T: %v", node, out, err)
|
||||
}
|
||||
|
||||
func decodeNode(node yaml.Node, out interface{}) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue