jonlives/knife-spork — pull request #151 by jeunito (2014-10-28 06:19:56+00:00)
Title: Better error messages when uploading syntactically incorrect json

When I omnied a cookbook, I was confused when I saw the following error message:

```bash
ERROR: Yajl::ParseError: parse error: invalid object key (must be a string)
asdasdasdad" }, } }
(right here) ------^
```
Turns out the environment had syntactically incorrect json. Also, Tte error message should be more clear in conveying what environment file is affected.

This patch shows an improved error message specifying the affected environment file:

```bash
ERROR: RuntimeError: Environment environment file has syntactically incorrect json:
parse error: invalid object key (must be a string)
asdasdasdasdasd" }, } }
(right here) ------^
```