Skip to content

Commit

Permalink
Added option 'suppressRemoteErrors'.
Browse files Browse the repository at this point in the history
davidjbradshaw committed Oct 17, 2013

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
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
@@ -30,7 +30,8 @@ module.exports = function (grunt) {
agent: "",
port: utillib.port,
ignoreErrors: false,
minimatch: {}
minimatch: {},
suppressRemoteErrors: false
});

grunt.verbose.writeflags(options, 'Raw Options');
@@ -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);
}

0 comments on commit f89f07c

Please sign in to comment.