From 746768e779f8fa3cc790e7309782bbcabef77f45 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 17 Jan 2011 20:18:42 -0800 Subject: [PATCH] Enable PhutilModuleLinter to recover more gracefully from broken modules. Summary: Test Plan: Reviewers: CC: --- src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php | 4 ++++ 1 file changed, 4 insertions(+) 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;