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:
parent
557e508656
commit
0044b9cca9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue