mirror of
https://github.com/samba-team/samba.git
synced 2025-10-22 07:33:16 +03:00
r19165: handle errors better for jsonrpc. generate an error object whenever possible
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
d9562e0f83
commit
aa8e4227a1
@@ -193,6 +193,7 @@ static int jsonrpc_include(int eid, int argc, char **argv)
|
||||
if (file_exist(path)) {
|
||||
ret = ejsEvalFile(eid, path, &result, &emsg);
|
||||
if (ret < 0) {
|
||||
ejsSetErrorMsg(eid, "Could not eval file");
|
||||
printf("file found; ret=%d (%s)\n", ret, emsg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user