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:
parent
8476ad1a28
commit
89d88dafcc
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue