Page MenuHomePhabricator

D11449.id27524.diff
No OneTemporary

D11449.id27524.diff

diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
@@ -11,17 +11,19 @@
}
public function execute(PhutilArgumentParser $args) {
+ $console = PhutilConsole::getConsole();
$api = $this->getAPI();
$patches = $this->getPatches();
$applied = $api->getAppliedPatches();
if ($applied === null) {
$namespace = $api->getNamespace();
- echo phutil_console_wrap(
- phutil_console_format(
- "**No Storage**: There is no database storage initialized in this ".
- "storage namespace ('{$namespace}'). Use '**storage upgrade**' to ".
- "initialize storage.\n"));
+ $console->writeErr(
+ pht(
+ '**Storage Not Initialized**: There is no database storage '.
+ 'initialized in this storage namespace ("%s"). Use '.
+ '**storage upgrade** to initialize storage.',
+ $namespace));
return 1;
}

File Metadata

Mime Type
text/plain
Expires
Oct 17 2024, 4:07 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717145
Default Alt Text
D11449.id27524.diff (1 KB)

Event Timeline