Skip to content

Commit

Permalink
add better error message for no cassette (#4316) (#2787)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Dec 15, 2020
1 parent 39a045d commit 953dec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changelog/4316.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
2 changes: 1 addition & 1 deletion google-beta/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func vcrSource(t *testing.T, path, mode string) (*VcrSource, error) {
case "REPLAYING":
seed, err := readSeedFromFile(vcrSeedFile(path, t.Name()))
if err != nil {
return nil, err
return nil, fmt.Errorf("no cassette found on disk for %s, please replay this testcase in recording mode - %w", t.Name(), err)
}
s := rand.NewSource(seed)
vcrSource := VcrSource{seed: seed, source: s}
Expand Down

0 comments on commit 953dec2

Please sign in to comment.