Add error callback to ogr command while spawning
This commit is contained in:
parent
2276187c27
commit
d60e2107af
@ -169,9 +169,9 @@ OgrFormat.prototype.toOGR = function(options, out_format, out_filename, callback
|
||||
|
||||
var child = spawn(ogr2ogr, ogrargs);
|
||||
|
||||
/*
|
||||
console.log('ogr2ogr ' + _.map(ogrargs, function(x) { return "'" + x + "'"; }).join(' '));
|
||||
*/
|
||||
child.on('error', function (err) {
|
||||
next(err);
|
||||
});
|
||||
|
||||
var stdout = '';
|
||||
child.stdout.on('data', function(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user