From 0044b9cca943d0988522bf9bbe0493cfbeb7d25f Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 25 May 2012 22:00:28 -0700 Subject: [PATCH] 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 --- .../ConduitAPI_differential_setdiffproperty_Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/conduit/method/differential/setdiffproperty/ConduitAPI_differential_setdiffproperty_Method.php b/src/applications/conduit/method/differential/setdiffproperty/ConduitAPI_differential_setdiffproperty_Method.php index ec1b6fa5c5..25e052ed64 100644 --- a/src/applications/conduit/method/differential/setdiffproperty/ConduitAPI_differential_setdiffproperty_Method.php +++ b/src/applications/conduit/method/differential/setdiffproperty/ConduitAPI_differential_setdiffproperty_Method.php @@ -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;