@classmethod
def _format_parsing_error(cls, e):
    """Transform a pyparsing exception into an error message

        Does a best effort to be useful, but might need to be improved.
        """
    return '{}\n{}^\n{}'.format(e.line, (e.column - 1) * ' ', e)
