From 9f08215dfb179c3c37c18016fb0eafb7ec6e681e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 23 Jun 2018 18:04:11 -0700 Subject: Moved console colors from core/ into lib/ --- nomsu.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index cfa515a..bb044b4 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -173,9 +173,14 @@ run = function() local _list_0 = args.inputs for _index_0 = 1, #_list_0 do local input = _list_0[_index_0] + local found = false for f in files.walk(input) do input_files[#input_files + 1] = f to_run[f] = true + found = true + end + if not found then + error("Could not find: " .. tostring(input)) end end nomsu.can_optimize = function(f) -- cgit v1.2.3