[addons] display a more helpful message on python errors
Merge pull request #5894 from tamland/script-error-message

[addons] display a more helpful message on python script error