grunt-ssh icon indicating copy to clipboard operation
grunt-ssh copied to clipboard

sftp should fail on error

Open chrisse27 opened this issue 9 years ago • 0 comments

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.

chrisse27 avatar Jul 02 '15 14:07 chrisse27