Page MenuHomePhabricator

Fix argument ordering in error message
ClosedPublic

Authored by amckinley on Apr 10 2018, 5:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 23 2025, 2:45 AM
Unknown Object (File)
Apr 22 2025, 4:34 AM
Unknown Object (File)
Apr 21 2025, 11:31 AM
Unknown Object (File)
Apr 16 2025, 10:42 AM
Unknown Object (File)
Apr 15 2025, 6:32 PM
Unknown Object (File)
Apr 15 2025, 2:22 PM
Unknown Object (File)
Apr 12 2025, 6:21 AM
Unknown Object (File)
Apr 7 2025, 7:11 AM
Subscribers
Tokens
"Pterodactyl" token, awarded by epriestley.

Details

Summary

Before:

$ ./config set phabricator.base-uri local.phacility.com:8080
Usage Exception: Config option 'http://' is invalid. The URI must start with https://' or 'phabricator.base-uri'.

After:

$ ./config set phabricator.base-uri local.phacility.com:8080
Usage Exception: Config option 'phabricator.base-uri' is invalid. The URI must start with http://' or 'https://'.
Test Plan

See above

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
src/applications/config/option/PhabricatorCoreConfigOptions.php
271–273

Missing single quote here, too, I think, before the first %s.

(Consider rewriting so that the values are double-quoted for consistency -- I've been gradually trying to move our strings so that "values" are more consistently enclosed in "double quotes".)

This revision is now accepted and ready to land.Apr 10 2018, 5:06 PM

Change to double-quotes; fix a second parameter order bug

This revision was automatically updated to reflect the committed changes.