Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.

Added data to the notification#268

Open
adamfitzgibbon wants to merge 1 commit intounlhcc:masterfrom
adamfitzgibbon:JobSubmissionError
Open

Added data to the notification#268
adamfitzgibbon wants to merge 1 commit intounlhcc:masterfrom
adamfitzgibbon:JobSubmissionError

Conversation

@adamfitzgibbon
Copy link
Contributor

addresses #155

@djw8605
Copy link
Collaborator

djw8605 commented Apr 25, 2017

Does the runCommand actually return stderr? Or just stdout?

@adamfitzgibbon
Copy link
Contributor Author

Isn't stderr piped to stdout when a command directly fails?

@djw8605
Copy link
Collaborator

djw8605 commented Apr 25, 2017

I don't think so. I think the runCommand has to do it:

 }).on('data', function(data) {
      console.log('STDOUT: ' + data);
    }).stderr.on('data', function(data) {
      console.log('STDERR: ' + data);
    });

@adamfitzgibbon
Copy link
Contributor Author

Is that meant to be chained onto the push function in runCommand?

@adamfitzgibbon
Copy link
Contributor Author

It looks like it already rejects and spits out an error, so any command using runCommand should be able to just chain a failure function to get that the error text.

if (err) {
              deferred.reject("Error running command " + command + ": " + err);
          } else {
              deferred.resolve(cumulData);
          }

@djw8605
Copy link
Collaborator

djw8605 commented Apr 25, 2017 via email

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants