Skip to content

Commit

Permalink
Derp, forgot to uncomment this again
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixPflaum committed Nov 21, 2024
1 parent 5634c85 commit 59c7850
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sim/core/bulksim.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"math"
"runtime"
"runtime/debug"
"sort"
"strings"
"sync/atomic"
Expand Down Expand Up @@ -56,11 +57,11 @@ type singleBulkSim struct {

func (b *bulkSimRunner) Run(signals simsignals.Signals, progress chan *proto.ProgressMetrics) (result *proto.BulkSimResult) {
defer func() {
// if err := recover(); err != nil {
// result = &proto.BulkSimResult{
// Error: &proto.ErrorOutcome{Message: fmt.Sprintf("%v\nStack Trace:\n%s", err, string(debug.Stack()))},
// }
// }
if err := recover(); err != nil {
result = &proto.BulkSimResult{
Error: &proto.ErrorOutcome{Message: fmt.Sprintf("%v\nStack Trace:\n%s", err, string(debug.Stack()))},
}
}
signals.Abort.Trigger()
}()

Expand Down

0 comments on commit 59c7850

Please sign in to comment.