2 Commits

Author SHA1 Message Date
Jens Harbott
5b502b9f78 Make remote error handling more robust
When a RemoteError is created, it is passed the complete content of the
json response from the server. Thus is can happen that it contains
unexpected entries, we should just ignore them.

Change-Id: I2155d1d44432884f19ef926c02b9d0f99ade57d9
Closes-Bug: 1714460
2017-09-01 10:45:10 +00:00
James Li
87a48c7725 Makes error msg more helpful
In the case that designate api returns an error response which
does not have an 'message' entry, CLI will prints out nothing helpful
for users. The patch grabs info from response to try to provide a helpful msg.

Fixed axfr resource too.

Change-Id: I810426b6d4f731cc5ead4372083abf6515c05dc3
2015-09-24 12:26:59 +00:00