fix: don't prepend to error (#1482)

This commit is contained in:
abelanger5
2025-04-03 11:11:46 -04:00
committed by GitHub
parent b3e5630e1a
commit 4a58842c74

View File

@@ -40,7 +40,7 @@ func (r *WorkflowResult) StepOutput(key string, v interface{}) error {
for _, stepRunResult := range r.workflowRun.Results {
if stepRunResult.StepReadableId == key {
if stepRunResult.Error != nil {
return fmt.Errorf("step run failed: %s", *stepRunResult.Error)
return fmt.Errorf("%s", *stepRunResult.Error)
}
if stepRunResult.Output != nil {