]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Fix Cryptic 'write-protected' Message
authorKevin McCarthy <me@kevinmccarthy.org>
Sun, 1 Dec 2013 23:46:44 +0000 (13:46 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Sun, 1 Dec 2013 23:46:44 +0000 (13:46 -1000)
Closes #46

vcr/stubs/__init__.py

index 0553890935cbb932f51f5df84ddb9e519bab1079..d389f823c35af45d676cdc0e1a18b02b988ad7df 100644 (file)
@@ -170,7 +170,7 @@ class VCRConnectionMixin:
             return VCRHTTPResponse(response)
         else:
             if self.cassette.write_protected:
-                raise Exception("cassette is write protected")
+                raise Exception("Can't overwrite existing cassette in your current record mode.")
 
             # Otherwise, we should send the request, then get the response
             # and return it.