When the server reports an internal error to the client it sends a plain string. it should instead send a JSON encoded hash with 'message', 'type', and potentially 'backtrace' elements. The client could then make more reasonable decisions about what to do rather than just printing the error and exiting.
When the server reports an internal error to the client it sends a plain string. it should instead send a JSON encoded hash with 'message', 'type', and potentially 'backtrace' elements. The client could then make more reasonable decisions about what to do rather than just printing the error and exiting.