Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2018 22:05:23 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330625 - head/stand/lua
Message-ID:  <201803072205.w27M5Nx9077175@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803072205.w27M5Nx9077175>