From 5a97521b0471f81a10f456af00ca9cd47457c076 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Wed, 10 May 2017 11:36:05 +0100 Subject: [PATCH] Fix typo in log message --- .../web/app/coffee/Features/SudoMode/SudoModeHandler.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/SudoMode/SudoModeHandler.coffee b/services/web/app/coffee/Features/SudoMode/SudoModeHandler.coffee index 67a10a81c9..5ae92b17a9 100644 --- a/services/web/app/coffee/Features/SudoMode/SudoModeHandler.coffee +++ b/services/web/app/coffee/Features/SudoMode/SudoModeHandler.coffee @@ -13,14 +13,14 @@ module.exports = SudoModeHandler = activateSudoMode: (userId, callback=(err)->) -> if !userId? - return callback(new Error('[SudoMode] user must not be supplied')) + return callback(new Error('[SudoMode] user must be supplied')) duration = TIMEOUT_IN_SECONDS logger.log {userId, duration}, "[SudoMode] activating sudo mode for user" rclient.set SudoModeHandler._buildKey(userId), '1', 'EX', duration, callback isSudoModeActive: (userId, callback=(err, isActive)->) -> if !userId? - return callback(new Error('[SudoMode] user must not be supplied')) + return callback(new Error('[SudoMode] user must be supplied')) rclient.get SudoModeHandler._buildKey(userId), (err, result) -> if err? return callback(err)