israelroldan / grunt-ssh

SSH, SFTP tasks for Grunt.
https://npmjs.org/package/grunt-ssh
MIT License
244 stars 70 forks source link

Added the errors from the ssh lib, just to have more detailed errors #103

Closed xescugc closed 9 years ago

xescugc commented 9 years ago

I've had an error (#101) and it was hard to debug because of the output. I've added the errors that throw the ssh lib to have more information in case of error. Before:

>> Error: Path creation failed: Error: Failed to create /dist

After

>> Error: Path creation failed: Error: Failed to create /dist Error: Permission denied

I can add it to the grunt.verbose.writeln() instead if you prefer.