Skip to content

Commit 31d4f07

Browse files
committed
Merge pull request php-vcr#144 from dbu/patch-2
provide more information when not in recording mode
2 parents cc8b752 + 042aa5a commit 31d4f07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/VCR/Videorecorder.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ public function handleRequest(Request $request)
232232
throw new \LogicException(
233233
"The request does not match a previously recorded request and the 'mode' is set to '{$this->config->getMode()}'. "
234234
. "If you want to send the request anyway, make sure your 'mode' is set to 'new_episodes'. "
235-
. "Please see http://php-vcr.github.io/documentation/configuration/#record-modes.");
235+
. "Please see http://php-vcr.github.io/documentation/configuration/#record-modes."
236+
."\nCassette: ".$this->cassette->getName()
237+
."\nRequest: ".print_r($request->toArray(), true)
238+
);
236239
}
237240

238241
$this->disableLibraryHooks();

0 commit comments

Comments
 (0)