diff --git a/arcanist/linter/PrettierLinter.php b/arcanist/linter/PrettierLinter.php --- a/arcanist/linter/PrettierLinter.php +++ b/arcanist/linter/PrettierLinter.php @@ -49,6 +49,20 @@ $root = $this->getProjectRoot(); $path = Filesystem::resolvePath($path, $root); + if ($err != 0) { + $message = id(new ArcanistLintMessage()) + ->setPath($path) + ->setLine(1) + ->setChar(1) + ->setGranularity(ArcanistLinter::GRANULARITY_FILE) + ->setCode('PRETTIER') + ->setSeverity(ArcanistLintSeverity::SEVERITY_ERROR) + ->setName('Linter error') + ->setDescription($stderr); + + return array($message); + } + $orig = file_get_contents($path); if ($orig == $stdout) { return array();