def error(self, msg):
body = msg['<STR_LIT:body>'].replace(NULL, '<STR_LIT>')<EOL>brief_msg = "<STR_LIT>"<EOL>if '<STR_LIT:message>' in msg['<STR_LIT>']:<EOL><INDENT>brief_msg = msg['<STR_LIT>']['<STR_LIT:message>']<EOL><DEDENT>self.log.error("<STR_LIT>" % (brief_msg, body))<EOL>returned = NO_RESPONSE_NEEDED<EOL>if self.testing:<EOL><INDENT>returned = '<STR_LIT:error>'<EOL><DEDENT>return returned<EOL>
Called to handle an error message received from the server.

        This method just logs the error message

        returned:
            NO_RESPONSE_NEEDED