Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when missing a command-line target, jcs:execute generates nasty output #12

Open
philshafer opened this issue Aug 14, 2014 · 0 comments
Open

Comments

@philshafer
Copy link
Contributor

var $local = jcs:open();

match / {
{
var $getfilerpc = {
{
"/var/tmp/simon.txt";
"raw";
}
}
var $file = jcs:execute($local,$getfilerpc);
$file;
}
}

When missing a command-line target, this is not acceptable output:

[root@space-0050569b0064 LocalScript]# juise testrpc.slax
jcs:execute: null argument
xmlXPathCompiledEval: evaluation failed
runtime error: file testrpc.slax line 23 element variable
Failed to evaluate the expression of variable 'file'.

I'll make a better error message. It's probably best to
just return a node set with an error like:

xnm:error
connection is null; likely no target device was provided
/xnm:error

Thanks,
Phil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant