aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-23 18:04:11 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-23 18:04:23 -0700
commit9f08215dfb179c3c37c18016fb0eafb7ec6e681e (patch)
tree6d1108b07b9a0a57dbc6c3701bf9971c9144da40 /nomsu.lua
parent247e55059ce94521895f362f5cdfdebf49bfb8e1 (diff)
Moved console colors from core/ into lib/
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua5
1 files changed, 5 insertions, 0 deletions
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)