Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't report error when [Error: stdout maxBuffer exceeded.] #24

Closed
uc2dabing opened this issue Jun 27, 2013 · 0 comments
Closed

can't report error when [Error: stdout maxBuffer exceeded.] #24

uc2dabing opened this issue Jun 27, 2013 · 0 comments

Comments

@uc2dabing
Copy link
Contributor

i just try below, but it doesn't work.

    childProcess.on('error', function(error){
      log.error(error);
    })

i test in callback just like below, it works:

    childProcess = cp.exec(command, execOptions, function(error, stdout, stderr){
      if(error !== null){
        log.error(error);
      }
      callback(error, stdout, stderr);
    });

someone has any good idea? and know why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants