Raw Go errors reported to users
Bug #1486254 reported by
Brad Crittenden
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Cheryl Jennings |
Bug Description
I'm testing the new JES feature, which requires a configuration file. The docs did not adequately explain what should be in the config file so I just had to guess. I guessed wrong and got the following error:
$ juju system create-environment test --config=
ERROR json: unsupported type: map[interface {}]interface {}
Exposing an error like that to the end-user is unacceptable. If it is a parsing error intercept it and at least report back what file is troublesome.
tags: | added: ui |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: jes |
Changed in juju-core: | |
assignee: | nobody → Tim Penhey (thumper) |
Changed in juju-core: | |
assignee: | Tim Penhey (thumper) → Menno Smits (menno.smits) |
Changed in juju-core: | |
assignee: | Menno Smits (menno.smits) → Cheryl Jennings (cherylj) |
Changed in juju-core: | |
status: | Triaged → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This error message is coming from way down in the rpc code (it's coming from websocket.Send). I believe it's due to the system create-environment command not converting nested maps from map[interface{ }]interface{ } to map[string] interface{ }. I can start working on a fix, but I'll be out of town for a bit, so it'll take a couple days.