Skip to content

Commit

Permalink
fix panic message in VerifyRecordWithStringArg
Browse files Browse the repository at this point in the history
It appears that the "mismatched arugment" panic message prints the
"expected" and "got" queries mixed around, this change fixes that.
  • Loading branch information
1lann authored and andy-kimball committed Aug 20, 2022
1 parent e388e2b commit eacfd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *session) VerifyRecordWithStringArg(recordTyp recordType, arg string) *r
panicf(
"mismatched argument to %s, expected %s, got %s\n\n"+
"Do you need to regenerate the recording with the -record flag?",
recordTyp.String(), arg, rec.Args[0].(string))
recordTyp.String(), rec.Args[0].(string), arg)
}
return rec
}
Expand Down

0 comments on commit eacfd65

Please sign in to comment.