def METHOD_NAME(error: Error) -> str:
    file = error.message.position.fileName
    line = error.message.position.line
    startCol = error.message.position.startColumn
    endCol = error.message.position.endColumn
    message = error.message.message
    type = error.code.type
    code = error.code.code
    out = [
        f"\033[91m{file}:{line}:{startCol},{endCol}:\033[0m "
        f"{message} ({type}[{code}])\n"
    ]
    for reason in error.reason:
        file = reason.position.fileName
        line = reason.position.line
        startCol = reason.position.startColumn
        endCol = reason.position.endColumn
        message = reason.message
        out.append(f"  \033[91m{file}:{line}:{startCol},{endCol}:\033[0m {message}\n")
    return "".join(out)