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:
@@ -47,7 +47,7 @@ final class ConduitAPI_differential_setdiffproperty_Method
|
|||||||
private static function updateLintStatus($diff_id, array $results) {
|
private static function updateLintStatus($diff_id, array $results) {
|
||||||
$diff = id(new DifferentialDiff())->load($diff_id);
|
$diff = id(new DifferentialDiff())->load($diff_id);
|
||||||
if (!$diff) {
|
if (!$diff) {
|
||||||
throw new ConduitException('ERR_BAD_DIFF');
|
throw new ConduitException('ERR_NOT_FOUND');
|
||||||
}
|
}
|
||||||
|
|
||||||
$has_error = false;
|
$has_error = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user