From: epriestley Date: Tue, 18 Jan 2011 04:18:42 +0000 (-0800) Subject: Enable PhutilModuleLinter to recover more gracefully from broken modules. X-Git-Tag: conduit-4~431 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=746768e779f8fa3cc790e7309782bbcabef77f45;p=arcanist.git Enable PhutilModuleLinter to recover more gracefully from broken modules. Summary: Test Plan: Reviewers: CC: --- diff --git a/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php b/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php index 26f2e9ef..4f6b37a4 100644 --- a/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php +++ b/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php @@ -249,6 +249,8 @@ class ArcanistPhutilModuleLinter extends ArcanistLinter { $loaded = true; } catch (PhutilMissingSymbolException $ex) { $loaded = false; + } catch (PhutilBootloaderException $ex) { + $loaded = false; } if ($loaded) { $resolvable[] = $message; @@ -290,6 +292,8 @@ class ArcanistPhutilModuleLinter extends ArcanistLinter { $loaded = true; } catch (PhutilMissingSymbolException $ex) { $loaded = false; + } catch (PhutilBootloaderException $ex) { + $loaded = false; } if ($loaded) { $resolvable[] = $message;