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
When error occur, you see line like this:
Fatal error: Error occured: Error
If you change
error.name
toerror.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