summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-10-07 20:31:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:47 -0500
commit1c681891b2d00a21efa02488d80bc48c3ddab783 (patch)
tree78f22179fa1252491d5f7ac04f294569df52be55 /source4/scripting/ejs
parent7c793e1bb74593357708e92dba6a99d89ac77c59 (diff)
downloadsamba-1c681891b2d00a21efa02488d80bc48c3ddab783.tar.gz
samba-1c681891b2d00a21efa02488d80bc48c3ddab783.tar.bz2
samba-1c681891b2d00a21efa02488d80bc48c3ddab783.zip
r19165: handle errors better for jsonrpc. generate an error object whenever possible
(This used to be commit aa8e4227a11d997f7c4c5af2b7a3c7c371b8c1cd)
Diffstat (limited to 'source4/scripting/ejs')
-rw-r--r--source4/scripting/ejs/smbcalls.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}