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 e30bd02 commit bd8e3e7Copy full SHA for bd8e3e7
src/Exporter.php
@@ -42,6 +42,10 @@ public function __destruct()
42
43
public function export(string $output, array $options = [])
44
{
45
+ if (!\is_dir(\dirname($output))) {
46
+ throw new \InvalidArgumentException('The output path doesnot exist.');
47
+ }
48
+
49
$this->setOptions($options);
50
51
$this->imgSize = $this->estimateSize($this->code);
0 commit comments