1
0
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:
Derrell Lipman
2006-10-07 20:31:27 +00:00
committed by Gerald (Jerry) Carter
parent d9562e0f83
commit aa8e4227a1
2 changed files with 46 additions and 2 deletions

View File

@@ -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);
}
}