Skip to content

Commit

Permalink
Append both errors in executeScript() with multierror
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Jul 19, 2023
1 parent c6624d2 commit 574fb22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fvm/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"

"github.com/hashicorp/go-multierror"
"github.com/onflow/cadence/runtime"
"github.com/onflow/cadence/runtime/common"

Expand Down Expand Up @@ -206,5 +207,5 @@ func (executor *scriptExecutor) executeScript() error {
}

executor.output.Value = value
return populateErr
return multierror.Append(err, populateErr)
}

0 comments on commit 574fb22

Please sign in to comment.