diff --git a/lib/command.js b/lib/command.js index 2ff464fe..c8341ed5 100644 --- a/lib/command.js +++ b/lib/command.js @@ -159,11 +159,14 @@ module.exports = function (proto) { throw new Error('gm().toBuffer() expects a callback.'); } - return this.stream(format, function (err, stdout) { + return this.stream(format, function (err, stdout, stderr) { if (err) return callback(err); + stderr.on('data', function(data) { + debug('stderr ' + data.toString('utf-8')); + }); streamToUnemptyBuffer(stdout, callback); - }) + }); } /**