Skip to content
Snippets Groups Projects
Commit 9e22b06f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Improve error message

parent 7b3303e7
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -708,7 +708,7 @@ function parse_command(line) ...@@ -708,7 +708,7 @@ function parse_command(line)
var ret=''; var ret='';
if (line.search(/^{([0-9]+)}$/) !== 0) if (line.search(/^{([0-9]+)}$/) !== 0)
throw new Error('invalid line, aborting'); throw new Error('invalid string literal ('+line+'), aborting');
line=line.replace(/^{([0-9]+)}$/, "$1"); line=line.replace(/^{([0-9]+)}$/, "$1");
client.socket.send("+ Give me more of that good stuff\r\n"); client.socket.send("+ Give me more of that good stuff\r\n");
var len = parseInt(line); var len = parseInt(line);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment