diff --git a/src/VisualDiff.php b/src/VisualDiff.php index 44c5610..ab61aec 100644 --- a/src/VisualDiff.php +++ b/src/VisualDiff.php @@ -137,5 +137,8 @@ protected function callDiff(array $command) if ($process->isSuccessful()) { return rtrim($process->getOutput()); } + + $message = 'Could not run the Node process. Probably a missing NPM dependency.' . PHP_EOL . PHP_EOL; + throw new \RuntimeException($message . $process->getErrorOutput(), 1); } -} \ No newline at end of file +}