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)
Sat, Nov 23, 8:52 PM
Unknown Object (File)
Oct 21 2024, 12:24 AM
Unknown Object (File)
Oct 18 2024, 6:33 PM
Unknown Object (File)
Oct 11 2024, 7:10 AM
Unknown Object (File)
Oct 4 2024, 1:24 AM
Unknown Object (File)
Oct 2 2024, 1:02 AM
Unknown Object (File)
Sep 29 2024, 1:26 AM
Unknown Object (File)
Sep 24 2024, 10:51 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.