israelroldan / grunt-ssh

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

sftp should fail on error #116

Open chrisse27 opened 9 years ago

chrisse27 commented 9 years ago

Currently sftp only outputs a warning in errors such as "Permission denied":

02-Jul-2015 16:19:16    Running "sftp:uploadCoreConfiguration" (sftp) task
02-Jul-2015 16:19:17    >> Error: Permission denied
...
02-Jul-2015 16:19:18    Done, without errors.

This is due

        }, function (err) {
          if (err) {
            grunt.fail.warn(err);
          }
          c.end();
        });
      });

in line 361.

sftp should fail on errors of this kind.