This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var res = new MyBuf(msg); | |
res.skip(2); // length | |
res.skip(2); // uri | |
res.skip(2); // server_type | |
res.skip(4); // flag | |
var code = parseInt(res.readUInt32LE()); // code | |
if (code > 0) { // error code | |
var exe_error_str = VOCS_CODE_MAP[code]; | |
if (exe_error_str) { | |
return callback(exe_error_str); |