From 1c681891b2d00a21efa02488d80bc48c3ddab783 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sat, 7 Oct 2006 20:31:27 +0000 Subject: r19165: handle errors better for jsonrpc. generate an error object whenever possible (This used to be commit aa8e4227a11d997f7c4c5af2b7a3c7c371b8c1cd) --- source4/scripting/ejs/smbcalls.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/scripting') diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c index b0df390427..62a956bb96 100644 --- a/source4/scripting/ejs/smbcalls.c +++ b/source4/scripting/ejs/smbcalls.c @@ -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); } } -- cgit