# # # patch "cmd_automate.cc" # from [a0dd119820e01902b68d3bc60169c808f2aedb64] # to [d55a314b338826605bc1afaa59b74aa74ae0240b] # ============================================================ --- cmd_automate.cc a0dd119820e01902b68d3bc60169c808f2aedb64 +++ cmd_automate.cc d55a314b338826605bc1afaa59b74aa74ae0240b @@ -354,12 +354,15 @@ LUAEXT(change_workspace, ) if (path_exists(ws / bookkeeping_root_component / ".") ) { workspace::found = true; + lua_pushboolean(LS, true); return 1; } else { - P(F("directory %s is not a workspace") % ws); - return 0; + i18n_format msg(F("directory %s is not a workspace") % ws); + lua_pushboolean(LS, false); + lua_pushlstring(LS, msg.str().data(), msg.str().size()); + return 2; } }