diff options
-rwxr-xr-x | testprogs/ejs/ejsnet.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testprogs/ejs/ejsnet.js b/testprogs/ejs/ejsnet.js index a40406d74e..b39d888c39 100755 --- a/testprogs/ejs/ejsnet.js +++ b/testprogs/ejs/ejsnet.js @@ -30,11 +30,17 @@ if (status.is_ok != true) { return -1; } + var info = usr_ctx.Info(options.ARGV[1]); -println("UserInfo.AccountName = " + info.AccountName); -println("UserInfo.Description = " + info.Description); -println("UserInfo.FullName = " + info.FullName); -println("UserInfo.AcctExpiry = " + info.AcctExpiry); +if (info != null) { + println("UserInfo.AccountName = " + info.AccountName); + println("UserInfo.Description = " + info.Description); + println("UserInfo.FullName = " + info.FullName); + println("UserInfo.AcctExpiry = " + info.AcctExpiry); +} else { + println("Null UserInfo returned - account unknown"); +} + var status = usr_ctx.Delete(options.ARGV[1]); if (status.is_ok != true) { |