Mercurial Hosting > luan
diff src/luan/modules/http/Http_test.luan @ 1340:b3c4fcf29a53
fix values() and minor Http_test
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Feb 2019 05:11:50 -0700 |
parents | d410747a671a |
children | d9a5405a3102 |
line wrap: on
line diff
--- a/src/luan/modules/http/Http_test.luan Sun Feb 17 06:47:14 2019 -0700 +++ b/src/luan/modules/http/Http_test.luan Mon Feb 18 05:11:50 2019 -0700 @@ -22,14 +22,8 @@ local old_out = Io.stdout try { function() - local mod = Package.load("site:"..path..".luan") - if mod and true then - mod() - else - local not_found = Package.load("site:/not_found.luan") - not_found or error(path.." not found") - not_found() - end + local mod = Package.load("site:"..path..".luan") or error(path.." not found") + mod() Http_test.text_writer.close() end finally = function()