Improved error message when calling get_client when not authenticated. GitHub #369