def errmsg(tool_name, action, ex):
    """
    Prints error message
    :param tool_name: name of the responsible tool
    :param action: action resulting in exception
    :param ex: exception
    :return: return state
    """
    print("Oops!\n"
          "\tSomething went wrong while", action, tool_name + ":\n",
          str(ex),
          "\tPlease try again or check the manual set-up section in README.md")
    return False