summaryrefslogtreecommitdiff
path: root/lib/web/imageRouter/imgur.js
diff options
context:
space:
mode:
authorAdam Hoka2018-06-01 13:01:57 +0200
committerAdam Hoka2018-06-01 14:26:28 +0200
commitb5574466cd715f1bfde156d5622e6d03c4f8405f (patch)
tree2be195445bb6aa44bc9dccc162bdd91d23971d6e /lib/web/imageRouter/imgur.js
parent65544f9a18a2a418cd88d8fc9f8ee227bd4cf03c (diff)
Fix callback validation
Signed-off-by: Adam Hoka <hoka.adam@nexogen.hu>
Diffstat (limited to 'lib/web/imageRouter/imgur.js')
-rw-r--r--lib/web/imageRouter/imgur.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/imageRouter/imgur.js b/lib/web/imageRouter/imgur.js
index 31d5f55c..2a20002c 100644
--- a/lib/web/imageRouter/imgur.js
+++ b/lib/web/imageRouter/imgur.js
@@ -11,7 +11,7 @@ exports.uploadImage = function (imagePath, callback) {
}
if (!callback || typeof callback !== 'function') {
- callback(new Error('Callback has to be a function'), null)
+ logger.error('Callback has to be a function')
return
}