mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
CB-5714 Fix of android build when too big output stops build with error due to buffer overflow.
This commit is contained in:
committed by
Andrew Grieve
parent
7951eee8a3
commit
8e260d5c40
Vendored
+1
-1
@@ -28,7 +28,7 @@ var child_process = require('child_process'),
|
||||
module.exports = function(cmd, opt_cwd) {
|
||||
var d = Q.defer();
|
||||
try {
|
||||
child_process.exec(cmd, {cwd: opt_cwd}, function(err, stdout, stderr) {
|
||||
child_process.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function(err, stdout, stderr) {
|
||||
if (err) d.reject('Error executing "' + cmd + '": ' + stderr);
|
||||
else d.resolve(stdout);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user