login() error reporting broken
Closed this issue · 1 comments
TheKat commented
In the NSNitro.login() function is this:
raise NSNitroError("Error logging in!" + ue.message)
However ue.message contains nothing. It's empty. This gives fairly useless error messages. ie:
NSNitroError(Error logging in!)
This should be more similar to this:
raise NSNitroError("Error logging in! " + str(ue))
which causes the error to come back more usefully similar to:
NSNitroError(Error logging in! <urlopen error [Errno 111] Connection refused>)
favoretti commented
Thanks, pushed a fix.