from typing import Dict
from typing import Any


def check_action(reply: Dict[str, Any]) -> Dict[str, Any]:
    """Check that the reply contains a message of success."""
    if not reply["success"]:
        raise RuntimeError(f"Error communicating with the large object storage:\n{reply['error']}")
    return reply