Author: kevans
Date: Wed Mar  7 22:05:23 2018
New Revision: 330625
URL: https://svnweb.freebsd.org/changeset/base/330625

Log:
  lualoader: Return status in cli_execute_unparsed properly
  
  cli_execute was changed to return the status, cascade that to
  cli_execute_unparsed.
  
  This fixes a lot of false "Failed to execute" errors following r330620; no
  failures actually occurred, but [module]_error would've then promptly
  executed (and also "failed")

Modified:
  head/stand/lua/cli.lua

Modified: head/stand/lua/cli.lua
==============================================================================
--- head/stand/lua/cli.lua      Wed Mar  7 22:04:27 2018        (r330624)
+++ head/stand/lua/cli.lua      Wed Mar  7 22:05:23 2018        (r330625)
@@ -95,7 +95,7 @@ function cli_execute(...)
 end
 
 function cli_execute_unparsed(str)
-       cli_execute(loader.parse(str))
+       return cli_execute(loader.parse(str))
 end
 
 -- Module exports
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to