svn commit: r330625 - head/stand/lua

Kyle Evans kevans at FreeBSD.org
Wed Mar 7 22:05:24 UTC 2018


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


More information about the svn-src-head mailing list