From 9393a39452aa6e3d3e792f0ab885a923730d169d Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 21 Jan 2014 19:07:03 -0500 Subject: [PATCH 1/3] fixes translation in recent --- public/src/forum/recent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/forum/recent.js b/public/src/forum/recent.js index 7a7dbc26f1..4694152125 100644 --- a/public/src/forum/recent.js +++ b/public/src/forum/recent.js @@ -90,7 +90,7 @@ define(function() { $('#category-no-topics').remove(); - html = $(html); + html = $(translatedHTML); container.append(html); $('span.timeago').timeago(); app.makeNumbersHumanReadable(html.find('.human-readable-number')); From e997c63480d4d4c545c08bd133e2b4b2a47d0f15 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 21 Jan 2014 20:47:03 -0500 Subject: [PATCH 2/3] return error --- src/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts.js b/src/posts.js index 2be8c7b83b..88d9330a56 100644 --- a/src/posts.js +++ b/src/posts.js @@ -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) { From 18075b85c7642bd19e63cd8c57ac2e845f35e878 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 21 Jan 2014 20:57:02 -0500 Subject: [PATCH 3/3] winston.error --- src/routes/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/user.js b/src/routes/user.js index 48dc5c26d0..b8d385e3fd 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -214,7 +214,7 @@ var fs = require('fs'), os.on('error', function (err) { fs.unlinkSync(tempPath); - winston.err(err); + winston.error(err.message); }); is.pipe(os);