Raw Go errors reported to users

Bug #1486254 reported by Brad Crittenden
6
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=$HOME/.juju/ec2
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: ui jes
Curtis Hovey (sinzui)
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)
Tim Penhey (thumper)
Changed in juju-core:
assignee: Tim Penhey (thumper) → Menno Smits (menno.smits)
Revision history for this message
Cheryl Jennings (cherylj) wrote :

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.

Changed in juju-core:
assignee: Menno Smits (menno.smits) → Cheryl Jennings (cherylj)
Revision history for this message
Cheryl Jennings (cherylj) wrote :
Changed in juju-core:
milestone: none → 1.26-alpha1
Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.