Commit 825235ce authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Specify what entity is not found when search fails to yield results

parent e64fb704
......@@ -58,7 +58,7 @@ def get_entity_dn(client, name):
else:
raise MCommError('Searching MCommunity failed.')
else:
raise MCommError('Unable to find specified entity')
raise MCommError('Unable to find "{}" in MCommunity'.format(name))
if data:
for item in data:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment