Skip to content
Snippets Groups Projects
Commit 6dec739a authored by rswindell's avatar rswindell
Browse files

JS error now contains invalid user number.

parent 82eafa67
No related branches found
No related tags found
No related merge requests found
......@@ -801,7 +801,7 @@ js_user_constructor(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
JS_ValueToInt32(cx,argv[0],&val);
user.number=(ushort)val;
if(user.number!=0 && getuserdat(scfg,&user)!=0) {
JS_ReportError(cx,"Invalid user number");
JS_ReportError(cx,"Invalid user number: %d",val);
return(JS_FALSE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment