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

Fix a Differential exception in invalid/missing fields

Summary: Ref T11114. Missed this while converting.

Test Plan: Tried to create a revision with no test plan. Before: fatal; after: helpful message.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11114

Differential Revision: https://secure.phabricator.com/D17061
This commit is contained in:
epriestley 2016-12-15 11:23:15 -08:00
parent 8476ad1a28
commit 89d88dafcc

View file

@ -274,7 +274,7 @@ final class DifferentialCommitMessageParser extends Phobject {
} catch (DifferentialFieldParseException $ex) {
$this->errors[] = pht(
'Error parsing field "%s": %s',
$field->renderCommitMessageLabel(),
$field->getFieldName(),
$ex->getMessage());
}
}
@ -286,7 +286,7 @@ final class DifferentialCommitMessageParser extends Phobject {
} catch (DifferentialFieldValidationException $ex) {
$this->errors[] = pht(
'Invalid or missing field "%s": %s',
$field->renderCommitMessageLabel(),
$field->getFieldName(),
$ex->getMessage());
}
}