summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-06-29 13:37:59 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-06-29 13:37:59 +0300
commita40cdcec612773a8a07afedd950e74eeb0eb9726 (patch)
tree85e569b798d4e17b373c52957f040ee437eabb5c
parent4f11e1c437bf904883c70b11310978b71e59327a (diff)
downloadluacov-a40cdcec612773a8a07afedd950e74eeb0eb9726.tar.bz2
Exit with 1 on config loading error
-rw-r--r--src/luacov/runner.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luacov/runner.lua b/src/luacov/runner.lua
index ed34e25..ab02953 100644
--- a/src/luacov/runner.lua
+++ b/src/luacov/runner.lua
@@ -332,6 +332,7 @@ local function load_config_file(name, is_default)
end
io.stderr:write(("Error: couldn't %s config file %s: %s\n"):format(error_type, name, error_msg))
+ raw_os_exit(1)
end
local default_config_file = ".luacov"