Skip to content

Commit

Permalink
Merge pull request #139 from mpeterv/fix-start-from-wrong-dir
Browse files Browse the repository at this point in the history
fix(cli): Fix missing start-server.lua handling in start command
  • Loading branch information
Etiene committed Oct 14, 2016
2 parents e5b59b6 + 83e3612 commit 3bff181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sailor/cli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function cli.gen_model(args)
end

function cli.start()
local ok, _ = xpcall(require "start-server")
local ok, _ = pcall(require, "start-server")
if not ok then
print("Start script not found. Please run this command from the root dir of your Sailor app.")
os.exit(1, true)
Expand Down Expand Up @@ -141,4 +141,4 @@ function cli.version()
os.exit(0)
end

return cli
return cli

0 comments on commit 3bff181

Please sign in to comment.