Error response -> template literal as requested

This commit is contained in:
zeratul0 2017-03-16 23:34:38 -04:00 committed by GitHub
parent ab1358df36
commit 88044e11d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;