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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user