def get_message_with_context(msg: str, context: str) -> str:
    """
    Concatenates an error message with a context. If context is empty
    string, will only return the error message.

    :param msg: the message
    :param context: the context of the message
    :return: the message with context
    """
    if len(context) == 0:
        return msg
    else:
        msg = "\t" + "\n\t".join(msg.splitlines())
        return "%s\n%s" % (context, msg)