def _raise_on_error(data):
if isinstance(data, dict) and data['<STR_LIT>']['<STR_LIT>'] == '<STR_LIT:error>':<EOL><INDENT>raise_error(data['<STR_LIT>']['<STR_LIT>'])<EOL><DEDENT>
Check response for error message.