tools/perf/core/services/request.py
def error_message(self):
    """Returns a unicode object with the error message found in the content."""
    try:
      # Try to find error message within json content.
      return self.json['error']
    except Exception:
      # Otherwise fall back to entire content itself, converting str to unicode.
      rv = self.content
      if not isinstance(rv, six.text_type):
        rv = rv.decode('utf-8')
      return rv
Returns a unicode object with the error message found in the content.
Returns a unicode object with the error message found in the content.
Returns a unicode object with the error message found in the content .
def error_message(self):
    try:
      return self.json['error']
    except Exception:
      rv = self.content
      if not isinstance(rv, six.text_type):
        rv = rv.decode('utf-8')
      return rv
def error_message ( self ) : try : return self . json [ 'error' ] except Exception : rv = self . content if not isinstance ( rv , six . text_type ) : rv = rv . decode ( 'utf-8' ) return rv
Returns a unicode object with the error message found in the content.
Returns a unicode object with the error message found in the content .
"""Returns a unicode object with the error message found in the content.""" # Try to find error message within json content. # Otherwise fall back to entire content itself, converting str to unicode.
self