We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263289e commit 076533dCopy full SHA for 076533d
module/VisualCeption.php
@@ -117,8 +117,13 @@ private function getScreenshotPath ($identifier)
117
{
118
$debugDir = \Codeception\Configuration::logDir() . 'debug/tmp/';
119
if (! is_dir($debugDir)) {
120
+ $created = mkdir($debugDir, 0777, true);
121
+ if( $created ) {
122
$this->debug("Creating directory: $debugDir");
- mkdir($debugDir, 0777, true);
123
+ }else{
124
+ throw new \RuntimeException("Unable to create temporary screenshot dir ($debugDir)");
125
+ }
126
+
127
}
128
return $debugDir . $this->getScreenshotName($identifier);
129
0 commit comments