return error

v1.18.x
Baris Soner Usakli 11 years ago
parent 9393a39452
commit e997c63480

@ -388,7 +388,7 @@ var db = require('./database'),
if(meta.config.imgurClientID) {
if(!image || !image.data) {
return callback('invalid image', null);
return callback(new Error('invalid image'), null);
}
require('./imgur').upload(meta.config.imgurClientID, image.data, 'base64', function(err, data) {

Loading…
Cancel
Save