Be more consistent when printing errors (i.e. if json encoding is requested then it should be used for errors too). Do not print "Request accepted". License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
Part of Issue #18. License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>