mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
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…
x
Reference in New Issue
Block a user