def METHOD_NAME(error):
    if len(error) == 1:
        return "Error: {msg}".format(msg=str(error[0]))
    return "From: {src}\nTo:   {dst}\n{msg}" \
            .format(src=error[0], dst=error[1], msg=error[2])