Skip to content

Commit

Permalink
Merge pull request #2 from gadhagod/master
Browse files Browse the repository at this point in the history
Update conversion error in convert function
  • Loading branch information
thombashi committed Feb 14, 2021
2 parents f7a059c + 8ca54fb commit f08890f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typepy/type/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def convert(self):
return self.force_convert()

raise TypeConversionError(
"failed to convert from {} to {}".format(type(self._data).__name__, self.typename)
"failed to convert {} from {} to {}".format(self._data, type(self._data).__name__, self.typename)
)

def force_convert(self):
Expand Down

0 comments on commit f08890f

Please sign in to comment.