Address Anton's comment

This commit is contained in:
ValarDragon
2018-08-30 09:32:15 -07:00
parent b3d08bcb23
commit d1a5808a75
+2 -2
View File
@@ -115,7 +115,7 @@ func SimulateFromSeed(
logUpdate, futureOps, err := ops[r.Intn(len(ops))](tb, r, app, ctx, keys, log, event)
log = updateLog(testingmode, log, logUpdate)
if err != nil {
tb.Fatalf("error on operation %d, %v", opCount, err)
tb.Fatalf("error on operation %d, %v, log %s", opCount, err, log)
}
queueOperations(operationQueue, futureOps)
@@ -160,7 +160,7 @@ func SimulateFromSeed(
}
func updateLog(testingmode bool, log string, update string, args ...interface{}) (updatedLog string) {
if testingmode == true {
if testingmode {
update = fmt.Sprintf(update, args...)
return fmt.Sprintf("%s\n%s", log, update)
}