mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-27 19:50:21 +01:00
Make macro audio errors more clear
Summary: Ref T12685. I bamboozled myself. Test Plan: {F4945786} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12685 Differential Revision: https://secure.phabricator.com/D17847
This commit is contained in:
parent
32af1d9a9f
commit
ff205964cf
1 changed files with 6 additions and 2 deletions
|
@ -50,7 +50,9 @@ final class PhabricatorMacroAudioController extends PhabricatorMacroController {
|
|||
|
||||
if ($file) {
|
||||
if (!$file->isAudio()) {
|
||||
$errors[] = pht('You must upload audio.');
|
||||
$errors[] = pht(
|
||||
'The file you uploaded is invalid: it is not recognizable as '.
|
||||
'a valid audio file.');
|
||||
$e_file = pht('Invalid');
|
||||
} else {
|
||||
$xactions[] = id(new PhabricatorMacroTransaction())
|
||||
|
@ -59,7 +61,9 @@ final class PhabricatorMacroAudioController extends PhabricatorMacroController {
|
|||
->setNewValue($file->getPHID());
|
||||
}
|
||||
} else {
|
||||
$errors[] = pht('You must upload an audio file.');
|
||||
$errors[] = pht(
|
||||
'To change the audio for a macro, you must upload an audio '.
|
||||
'file.');
|
||||
$e_file = pht('Required');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue