Closed
Bug 1370213
Opened 7 years ago
Closed 7 years ago
compare-locales should report non existent config files
Categories
(Localization Infrastructure and Tools :: compare-locales, defect)
Localization Infrastructure and Tools
compare-locales
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: flod, Assigned: Pike)
References
Details
Attachments
(1 file)
While testing, I was misspelling the path to the config file when invoking compare-locales. Currently output is blank, I think it would make more sense to report at least an error.
Assignee | ||
Comment 1•7 years ago
|
||
This is the thing you talked about in bug 1361037 comment 36, missed that in the review process.
Assignee: nobody → l10n
Comment hidden (mozreview-request) |
Reporter | ||
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8875685 [details] bug 1370213, error on missing configuration files and bad l10n-base-dir, https://reviewboard.mozilla.org/r/147118/#review151330 ::: compare_locales/commands.py:124 (Diff revision 1) > args.l10n_base_dir = all_args.pop(0) > args.locales.extend(all_args) > configs = [] > config_env = {} # Hook up commandline arguments here > for config_path in args.config: > if config_path.endswith('.toml'): This only fixes part of the problem (missing l10n-base path). The other is non existing config files. What about adding here? if not os.path.isfile(config_path): self.parser.error('config file not found')
Comment hidden (mozreview-request) |
Reporter | ||
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8875685 [details] bug 1370213, error on missing configuration files and bad l10n-base-dir, https://reviewboard.mozilla.org/r/147118/#review151404 Looks good, thanks. I stumbled that INI text the other day and completely forgot about it.
Attachment #8875685 -
Flags: review?(francesco.lodolo) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•7 years ago
|
||
https://hg.mozilla.org/l10n/compare-locales/rev/fca288f0e156fb7d2c5b57f08fce69d1b23fc092, FIXED.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•