1
0
Fork 0
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:
Earl Warren 2024-09-15 15:46:01 +02:00
parent 81c1530fce
commit 61b7859f12
2 changed files with 20 additions and 1 deletions

View file

@ -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 {