1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-10 00:42:40 +01:00

Stop this from failing on directories, etc.; u-u-u-u-ultra clown.

This commit is contained in:
epriestley 2011-04-11 16:13:22 -07:00
parent c00da5bf4f
commit 8ffba323ea

View file

@ -181,8 +181,14 @@ abstract class ArcanistLintEngine {
// raised an error about its filename. We could refine this by looking
// through the lint messages and doing this load only if any of them
// have original/replacement text or something like that.
$this->fileData[$path] = Filesystem::readFile($path);
$result->setData($this->fileData[$path]);
try {
$this->fileData[$path] = Filesystem::readFile($path);
$result->setData($this->fileData[$path]);
} catch (FilesystemException $ex) {
// Ignore this, it's noncritical that we access this data and it
// might be unreadable or a directory or whatever else for plenty
// of legitimate reasons.
}
}
}