reporting an error from the environment isn't formatted well
Bug #1251420 reported by
Richard Harding
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-gui (Juju Charms Collection) |
Fix Released
|
High
|
Brad Crittenden |
Bug Description
In testing watching a deployer process there are bundles with the default constraints that caused a Go EnvError. This came out of the watcher as
{
"Response":{
"Changes":[
{
}
]
},
"RequestId":11
}
The Error should be in a better format to be able to be used. Either a nested object, or just a message.
Related branches
lp:~bac/charms/precise/juju-gui/enverror
- charmers: Pending requested
-
Diff: 75 lines (+19/-5)4 files modifiedrevision (+1/-1)
server/guiserver/bundles/utils.py (+5/-2)
server/guiserver/tests/bundles/test_base.py (+1/-1)
server/guiserver/tests/bundles/test_utils.py (+12/-1)
Changed in juju-gui (Juju Charms Collection): | |
status: | Triaged → Fix Committed |
Changed in juju-gui (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In talking with Francesco, this is the string representation of the EnvError. We can try to hack around this by checking the error type and cleaning the error in this case, but maybe we should file this up to the client and have it update it's original representation.