1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00

Throw a more helpful error for bad Differential actions

Summary: Ref T7611. This should let us figure out the root cause, hopefully.

Test Plan: iiam

Reviewers: joshuaspence, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T7611

Differential Revision: https://secure.phabricator.com/D12124
This commit is contained in:
epriestley 2015-03-23 09:10:18 -07:00
parent 08aefafef7
commit 5001aadf46

View file

@ -249,6 +249,11 @@ final class DifferentialTransactionEditor
case DifferentialAction::ACTION_CLAIM: case DifferentialAction::ACTION_CLAIM:
$object->setAuthorPHID($this->getActingAsPHID()); $object->setAuthorPHID($this->getActingAsPHID());
return; return;
default:
throw new Exception(
pht(
'Differential action "%s" is not a valid action!',
$xaction->getNewValue()));
} }
break; break;
} }