]> khamidou — GitHub mirrors - arcanist.git/commit
Better handling of `.arcconfig` files.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 23 Jun 2014 23:24:41 +0000 (09:24 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 23 Jun 2014 23:24:41 +0000 (09:24 +1000)
commit750a94e89fada66681fe4587f92a4adf558d9386
treea4674e131aa4fe378c1b50c578c37cce53732e45
parent30df78f64cd8c90b37100186ea3ec0c20f62fa76
Better handling of `.arcconfig` files.

Summary:
Throw a useful error message when an `.arcconfig` file is not valid JSON.

Depends on D9697.

Test Plan:
Modified an `.arcconfig` file to be invalid JSON.

```
> arc lint
Usage Exception: Your '~/.arcrc' file is not a valid JSON file.

Parse error on line 18 at column 4: Expected: 'STRING' - It appears you have an extra trailing comma
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9681
src/configuration/ArcanistConfigurationManager.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php