Commit 15f8de37 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2739] Permitir modo interativo do 'busconsole' e 'busadmin'

[OPENBUS-2740] Tornar o 'busadmin' um 'busconsole' estendido com funções Lua de governaça
- Adaptando os testes do 'busadmin' para sua nova versão.

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@161141 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 523aa676
......@@ -157,7 +157,7 @@ function module.processargs(env, ignorevars, interactive, executables, script, .
end
if errmsg ~= nil then
stderr:write(errmsg, "\n")
stderr:write(tostring(errmsg), "\n")
return 1
elseif interactive then
openconsole(env)
......
......@@ -62,9 +62,7 @@ static int pmain (lua_State *L) {
if ( (status == LUA_OK) && lua_isnumber(L, -1) ) return 1;
}
}
openbuslua_report(L, status);
lua_pushinteger(L, EXIT_FAILURE);
return 1;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment