Page MenuHomePhabricator

D11261.id27050.diff
No OneTemporary

D11261.id27050.diff

diff --git a/src/applications/conduit/controller/PhabricatorConduitConsoleController.php b/src/applications/conduit/controller/PhabricatorConduitConsoleController.php
--- a/src/applications/conduit/controller/PhabricatorConduitConsoleController.php
+++ b/src/applications/conduit/controller/PhabricatorConduitConsoleController.php
@@ -49,19 +49,15 @@
}
$error_types = $method->defineErrorTypes();
- if ($error_types) {
- $error_description = array();
- foreach ($error_types as $error => $meaning) {
- $error_description[] = hsprintf(
- '<li><strong>%s:</strong> %s</li>',
- $error,
- $meaning);
- }
- $error_description = phutil_tag('ul', array(), $error_description);
- } else {
- $error_description = pht(
- 'This method does not raise any specific errors.');
+ $error_types['ERR-CONDUIT-CORE'] = pht('See error message for details.');
+ $error_description = array();
+ foreach ($error_types as $error => $meaning) {
+ $error_description[] = hsprintf(
+ '<li><strong>%s:</strong> %s</li>',
+ $error,
+ $meaning);
}
+ $error_description = phutil_tag('ul', array(), $error_description);
$form = new AphrontFormView();
$form

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 23, 2:02 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7658882
Default Alt Text
D11261.id27050.diff (1 KB)

Event Timeline