sailorproject / sailor

A Lua MVC Web Framework.
MIT License
921 stars 125 forks source link

fix(cli): Fix missing start-server.lua handling in start command #139

Closed mpeterv closed 7 years ago

mpeterv commented 7 years ago

Don't call require "start-server" in unprotected mode, actually pass require and "start-server" as arguments to pcall. Use pcall instead of xpcall as no error handler is used.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 82.679% when pulling 83e361233d44f9f6cf629c242aee4e0b0fb6337b on mpeterv:fix-start-from-wrong-dir into e5b59b6c3e8a0cb9e259f3dc9465300694250e9b on sailorproject:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 82.679% when pulling 83e361233d44f9f6cf629c242aee4e0b0fb6337b on mpeterv:fix-start-from-wrong-dir into e5b59b6c3e8a0cb9e259f3dc9465300694250e9b on sailorproject:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 82.679% when pulling 83e361233d44f9f6cf629c242aee4e0b0fb6337b on mpeterv:fix-start-from-wrong-dir into e5b59b6c3e8a0cb9e259f3dc9465300694250e9b on sailorproject:master.

Etiene commented 7 years ago

Oh!!! Thanks ^____^