diff --git a/vcr/core.py b/vcr/core.py index 91d468d..02c6afe 100644 --- a/vcr/core.py +++ b/vcr/core.py @@ -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')