1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Throw defined error

Test Plan: `differential.setdiffproperty` with non-existent diff and property "arc:lint".

Reviewers: mgummelt, epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D2584
This commit is contained in:
vrana 2012-05-25 22:00:28 -07:00
parent 557e508656
commit 0044b9cca9

View file

@ -47,7 +47,7 @@ final class ConduitAPI_differential_setdiffproperty_Method
private static function updateLintStatus($diff_id, array $results) {
$diff = id(new DifferentialDiff())->load($diff_id);
if (!$diff) {
throw new ConduitException('ERR_BAD_DIFF');
throw new ConduitException('ERR_NOT_FOUND');
}
$has_error = false;