Skip to content

Node.js based forum software built for the modern web

only send back err

barisusakli96a3db6365c6
diff --git a/src/image.js b/src/image.js
index 2c5c5ceb8c..f4b85acd4d 100644
--- a/src/image.js
+++ b/src/image.js
@@ -72,7 +72,9 @@ image.normalise = function(path, extension, callback) {
if (err) {
return callback(err);
}
- image.write(path + '.png', callback);
+ image.write(path + '.png', function(err) {
+ callback(err);
+ });
});
}
};