diff --git a/src/imageAi.php b/src/imageAi.php index 6fa530b..2408e4e 100644 --- a/src/imageAi.php +++ b/src/imageAi.php @@ -117,7 +117,7 @@ protected function createExecPythonFile() $this->fsObject->dumpFile($this->execPath, $this->pythonGenerator->generate()); } } catch (\Exception $exception) { - throw new \Exception("Error creating file at" . $exception->getPath()); + throw new \Exception("Error creating file at" . $exception->getFile()); } } @@ -144,4 +144,4 @@ protected function execAndGetOutput() return $this->getResults($process->getOutput()); } -} \ No newline at end of file +}