Skip to content

Commit 3ff2ff7

Browse files
committed
Cast error message to str
1 parent b09e8a3 commit 3ff2ff7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

watson_developer_cloud/watson_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, code, message, info=None, httpResponse=None):
7777

7878

7979
def __str__(self):
80-
msg = 'Error: ' + self.message + ', Code: ' + str(self.code)
80+
msg = 'Error: ' + str(self.message) + ', Code: ' + str(self.code)
8181
if self.transactionId is not None:
8282
msg += ' , X-dp-watson-tran-id: ' + str(self.transactionId)
8383
if self.globalTransactionId is not None:

0 commit comments

Comments
 (0)