Skip to content

Commit

Permalink
Merge Pull Request snabbco#502 into next
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed May 28, 2015
2 parents f76cfde + 053bf6c commit 2edc06f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/snabbswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ int main(int snabb_argc, char **snabb_argv)
argv = snabb_argv;
lua_State* L = luaL_newstate();
luaL_openlibs(L);
return luaL_dostring(L, "require \"core.main\"");
return luaL_dostring(L, "require \"core.startup\"");
}

6 changes: 6 additions & 0 deletions src/core/startup.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local ok, err = pcall(require, "core.main")
if not ok then
print("startup: unhandled exception")
print(err)
os.exit(1)
end

0 comments on commit 2edc06f

Please sign in to comment.