]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Enable PhutilModuleLinter to recover more gracefully from broken modules.
authorepriestley <epriestley@javelinjs.com>
Tue, 18 Jan 2011 04:18:42 +0000 (20:18 -0800)
committerepriestley <epriestley@javelinjs.com>
Tue, 18 Jan 2011 04:18:42 +0000 (20:18 -0800)
Summary:

Test Plan:

Reviewers:

CC:

src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php

index 26f2e9ef4726555a9911f22fdaee2df9ed3fb9a6..4f6b37a43e7cafde5e7f2b84825c2c7bf77b448b 100644 (file)
@@ -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;