mirror of https://github.com/calzoneman/sync.git
Error response -> template literal as requested
This commit is contained in:
parent
ab1358df36
commit
88044e11d5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue