Differential D25238 Diff 823 src/applications/harbormaster/xaction/build/HarbormasterBuildMessageResumeTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/xaction/build/HarbormasterBuildMessageResumeTransaction.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | final class HarbormasterBuildMessageResumeTransaction | ||||
protected function newCanSendMessageAssertion( | protected function newCanSendMessageAssertion( | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
HarbormasterBuild $build) { | HarbormasterBuild $build) { | ||||
if ($build->isResuming()) { | if ($build->isResuming()) { | ||||
throw new HarbormasterMessageException( | throw new HarbormasterMessageException( | ||||
pht('Unable to Resume Build'), | pht('Unable to Resume Build'), | ||||
pht( | pht( | ||||
'You can not resume this build beacuse it is already resuming.')); | 'You can not resume this build because it is already resuming.')); | ||||
} | } | ||||
if ($build->isRestarting()) { | if ($build->isRestarting()) { | ||||
throw new HarbormasterMessageException( | throw new HarbormasterMessageException( | ||||
pht('Unable to Resume Build'), | pht('Unable to Resume Build'), | ||||
pht('You can not resume this build because it is already restarting.')); | pht('You can not resume this build because it is already restarting.')); | ||||
} | } | ||||
Show All 9 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