Changeset View
Changeset View
Standalone View
Standalone View
support/ArcanistRuntime.php
| Show All 15 Lines | public function execute(array $argv) { | ||||
| } | } | ||||
| PhutilTranslator::getInstance() | PhutilTranslator::getInstance() | ||||
| ->setLocale(PhutilLocale::loadLocale('en_US')) | ->setLocale(PhutilLocale::loadLocale('en_US')) | ||||
| ->setTranslations(PhutilTranslation::getTranslationMapForLocale('en_US')); | ->setTranslations(PhutilTranslation::getTranslationMapForLocale('en_US')); | ||||
| try { | try { | ||||
| return $this->executeCore($argv); | return $this->executeCore($argv); | ||||
| } catch (ArcanistConduitException $ex) { | |||||
| fwrite( | |||||
| STDERR, | |||||
| tsprintf( | |||||
| "**%s:** %s\n", | |||||
| pht('Conduit Exception'), | |||||
| $ex->getMessage())); | |||||
| } catch (PhutilArgumentUsageException $ex) { | } catch (PhutilArgumentUsageException $ex) { | ||||
| fwrite( | fwrite( | ||||
| STDERR, | STDERR, | ||||
| tsprintf( | tsprintf( | ||||
| "**%s:** %s\n", | "**%s:** %s\n", | ||||
| pht('Usage Exception'), | pht('Usage Exception'), | ||||
| $ex->getMessage())); | $ex->getMessage())); | ||||
| ▲ Show 20 Lines • Show All 489 Lines • Show Last 20 Lines | |||||