1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52: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 // 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 // through the lint messages and doing this load only if any of them
// have original/replacement text or something like that. // have original/replacement text or something like that.
try {
$this->fileData[$path] = Filesystem::readFile($path); $this->fileData[$path] = Filesystem::readFile($path);
$result->setData($this->fileData[$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.
}
} }
} }