Changeset View
Changeset View
Standalone View
Standalone View
scripts/arcanist.php
| Show First 20 Lines • Show All 614 Lines • ▼ Show 20 Lines | try { | ||||
| "is specified by %s. Check that the setting is correct and the ". | "is specified by %s. Check that the setting is correct and the ". | ||||
| "library is located in the right place.", | "library is located in the right place.", | ||||
| $location, | $location, | ||||
| $lib_source); | $lib_source); | ||||
| if ($must_load) { | if ($must_load) { | ||||
| throw new ArcanistUsageException($error); | throw new ArcanistUsageException($error); | ||||
| } else { | } else { | ||||
| fwrite(STDERR, phutil_console_wrap( | fwrite(STDERR, phutil_console_wrap( | ||||
| "%s: %s\n\n", | phutil_console_format("%s: %s\n", | ||||
| pht('WARNING'), | pht('WARNING'), | ||||
| $error)); | $error))); | ||||
| } | } | ||||
| } catch (PhutilLibraryConflictException $ex) { | } catch (PhutilLibraryConflictException $ex) { | ||||
| if ($ex->getLibrary() != 'arcanist') { | if ($ex->getLibrary() != 'arcanist') { | ||||
| throw $ex; | throw $ex; | ||||
| } | } | ||||
| $arc_dir = dirname(dirname(__FILE__)); | $arc_dir = dirname(dirname(__FILE__)); | ||||
| $error = pht( | $error = pht( | ||||
| "You are trying to run one copy of Arcanist on another copy of ". | "You are trying to run one copy of Arcanist on another copy of ". | ||||
| Show All 10 Lines | |||||