Paolo Bonzini wrote: > On 10/15/2009 09:08 PM, Luiz Capitulino wrote: > >{ "error": { "code": 12 > > "desc": "device already open", > > "data": { "bus": 0, "address": 12 } } } > > > > Note that this also can be reused by any bus, as the "data" information > >is built at error time and can contain anything. > > The "desc" is not even necessary on the wire.
When you send an error code that that client doesn't know yet (because you can't update every client immediately), it'll be very helpful to users to see "device already open" instead of "unknown error 12". -- Jamie