Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPatchWorkflow.php
Show First 20 Lines • Show All 385 Lines • ▼ Show 20 Lines | try { | ||||
break; | break; | ||||
case self::SOURCE_DIFF: | case self::SOURCE_DIFF: | ||||
$bundle = $this->loadDiffBundleFromConduit( | $bundle = $this->loadDiffBundleFromConduit( | ||||
$this->getConduit(), | $this->getConduit(), | ||||
$param); | $param); | ||||
break; | break; | ||||
} | } | ||||
} catch (ConduitClientException $ex) { | } catch (ConduitClientException $ex) { | ||||
if ($ex->getErrorCode() == 'ERR-INVALID-SESSION') { | if ($ex->getErrorCode() == 'ERR-INVALID-SESSION' || | ||||
$ex->getErrorCode() == 'ERR-INVALID-AUTH') { | |||||
// Phabricator is not configured to allow anonymous access to | // Phabricator is not configured to allow anonymous access to | ||||
// Differential. | // Differential. | ||||
$this->authenticateConduit(); | $this->authenticateConduit(); | ||||
return $this->run(); | return $this->run(); | ||||
} else { | } else { | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 744 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0