Skip to content

Commit

Permalink
Merge pull request #57 from PritishC/feature/task-6703
Browse files Browse the repository at this point in the history
Refactored error message to include state details. #6703
  • Loading branch information
tarunbhardwaj committed Jan 13, 2015
2 parents f5a12f0 + 887b145 commit d001d28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def create_using_magento_data(cls, order_data):
# and let the user fix this manually.
MagentoException.create([{
'origin': '%s,%s' % (sale.__name__, sale.id),
'log': e.message
'log': "Error occurred on transitioning to state %s.\nError "
"Message: %s" % (tryton_state['tryton_state'], e.message),
}])

return sale
Expand Down

0 comments on commit d001d28

Please sign in to comment.