def error(title, error_msg):
err = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': title,<EOL>'<STR_LIT>': error_msg,<EOL>}<EOL>return err<EOL>
Builds an error element.  Provides a way to show errors or other
anomalous behavior in the web output.

Args:
    title: The title to display
    error_msg: A description of the error or other helpful message

Returns:
    A dictionary with the metadata specifying that it is to be
    rendered as an error element