mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
added stdout check to exec
This commit is contained in:
5
app.js
5
app.js
@@ -49,10 +49,9 @@
|
||||
};
|
||||
|
||||
require('child_process').exec('/usr/bin/which convert', function(err, stdout, stderr) {
|
||||
if(err) {
|
||||
winston.warn('Counldn\'t find convert. Did you install imagemagick? ', err.message);
|
||||
if(err || !stdout) {
|
||||
winston.warn('Counldn\'t find convert. Did you install imagemagick?');
|
||||
}
|
||||
winston.warn('Counldn\'t find convert. Did you install imagemagick? ', err);
|
||||
});
|
||||
|
||||
// Log GNU copyright info along with server info
|
||||
|
||||
Reference in New Issue
Block a user