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)
Wed, Apr 3, 10:36 PM
Unknown Object (File)
Sat, Mar 30, 4:42 PM
Unknown Object (File)
Sat, Mar 30, 4:42 PM
Unknown Object (File)
Sat, Mar 30, 4:42 PM
Unknown Object (File)
Sat, Mar 30, 4:42 PM
Unknown Object (File)
Sat, Mar 30, 4:42 PM
Unknown Object (File)
Jan 25 2024, 6:15 AM
Unknown Object (File)
Jan 7 2024, 11:35 PM
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.