dwightjack / grunt-nodemailer

Grunt wrapper for Nodemailer
MIT License
9 stars 4 forks source link

Display error name instead of error message #3

Closed aszmyd closed 10 years ago

aszmyd commented 10 years ago

When error occur, you see line like this: Fatal error: Error occured: Error

If you change error.name to error.message in line: grunt.fail.fatal('Error occured: ' + error.name);

you will see the error itself instead of just 'Error'. After changing this you can see for example: Fatal error: Error occured: Authentication required, invalid details provided

dwightjack commented 10 years ago

I agree, that way more informative :)

Fixed and pushed v0.2.1