2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-15 09:39:37 +00:00

Change to str for exception message

str will tend to present a more normal looking error string.  Use
that so that a user does not have the impression there is a code
issue on expected errors.
This commit is contained in:
Jarrod Johnson 2017-07-27 09:03:36 -04:00
parent 7a88a2825d
commit 858647bb6d

View File

@ -30,7 +30,7 @@ def execupdate(handler, filename, updateobj):
updateobj.handle_progress({'phase': 'complete', 'progress': 100.0})
except Exception as e:
updateobj.handle_progress({'phase': 'error', 'progress': 0.0,
'detail': repr(e)})
'detail': str(e)})
class Updater(object):
def __init__(self, node, handler, filename, tenant=None, name=None):