Skip to content

Commit

Permalink
Added option 'suppressRemoteErrors'.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Oct 17, 2013
1 parent 690efa1 commit f89f07c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/sshexec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = function (grunt) {
agent: "",
port: utillib.port,
ignoreErrors: false,
minimatch: {}
minimatch: {},
suppressRemoteErrors: false
});

grunt.verbose.writeflags(options, 'Raw Options');
Expand Down Expand Up @@ -87,8 +88,8 @@ module.exports = function (grunt) {
}
stream.on('data', function (data, extended) {
var out = String(data);
if (extended === 'stderr') {
grunt.log.warn(out);
if (extended === 'stderr' ) {
if (!options.suppressRemoteErrors) grunt.log.warn(out);
} else {
grunt.log.write(out);
}
Expand Down

0 comments on commit f89f07c

Please sign in to comment.