From 88044e11d5774d1548948b948783fdee17b4b0e9 Mon Sep 17 00:00:00 2001 From: zeratul0 Date: Thu, 16 Mar 2017 23:34:38 -0400 Subject: [PATCH] Error response -> template literal as requested --- src/channel/opts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel/opts.js b/src/channel/opts.js index eef38dd2..46da8a83 100644 --- a/src/channel/opts.js +++ b/src/channel/opts.js @@ -116,7 +116,7 @@ OptionsModule.prototype.handleSetOptions = function (user, data) { if (isNaN(ratio) || ratio < 0) { user.socket.emit("validationError", { target: "#cs-voteskip_ratio", - message: "Input must be a number 0 or greater. 1.0 is 100%." + message: `Input must be a number 0 or greater, not "${data.voteskip_ratio}"` }); } else { this.opts.voteskip_ratio = ratio;