Skip to content

Commit

Permalink
add filename in exception message when source code has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Apr 4, 2017
1 parent a6dd6b7 commit 2cfda16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vcr/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,8 @@ def _vcr_inner(*args, **kwargs):
sha256 = get_source_code_sha256(func)
if sha256 != sha256_playlist:
msg = ('Source code of test routine has changed since '
'time when VCR tape was recorded.')
'time when VCR tape (file: {}) was '
'recorded.').format(tape)
raise VCRPlaybackSourceCodeChangedError(msg)
if VCRSystem.debug:
print('SHA256 sum of source code matches playlist')
Expand Down

0 comments on commit 2cfda16

Please sign in to comment.