Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Stderr goes to Stdout #61

Description

@mattlyons0

node-rsync/rsync.js

Lines 464 to 479 in a8a6350

Rsync.prototype.output = function(stdout, stderr) {
// Check for single argument so the method can be used with Rsync.build
if (arguments.length === 1 && Array.isArray(stdout)) {
stderr = stdout[1];
stdout = stdout[0];
}
if (typeof(stdout) === 'function') {
this._outputHandlers.stdout = stdout;
}
if (typeof(stderr) === 'function') {
this._outputHandlers.stderr = stdout;
}
return this;
};

I believe this is a typo on:

this._outputHandlers.stderr = stdout;

this._outputHandlers.stderr = stdout should be this._outputHandlers.stderr = stderr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions