Merge pull request #24336 from twangboy/fix_cp_get_url

Added line to give more descriptive error
This commit is contained in:
Justin Anderson 2015-06-04 13:56:00 -06:00
commit 485116c2cc

View file

@ -595,6 +595,8 @@ class Client(object):
stream=True,
**get_kwargs
)
if 'handle' not in query:
raise MinionError('Error: {0}'.format(query['error']))
response = query['handle']
chunk_size = 32 * 1024
if not no_cache: