webmcp
diff framework/env/execute/file_path.lua @ 314:ba68ef9e7c90
Removed some redundancy from error messages
author | jbe |
---|---|
date | Sun Mar 22 23:10:07 2015 +0100 (2015-03-22) |
parents | 4e69ce9a6365 |
children | 2b5bdf9028fb |
line diff
1.1 --- a/framework/env/execute/file_path.lua Sun Mar 22 23:08:18 2015 +0100 1.2 +++ b/framework/env/execute/file_path.lua Sun Mar 22 23:10:07 2015 +0100 1.3 @@ -14,10 +14,7 @@ 1.4 local file_path = args.file_path 1.5 local id = args.id 1.6 local params = args.params 1.7 - local func, load_errmsg = loadcached(file_path) 1.8 - if not func then 1.9 - error('Could not load file "' .. file_path .. '": ' .. load_errmsg) 1.10 - end 1.11 + local func, load_errmsg = assert(loadcached(file_path)) 1.12 if id or params then 1.13 param.exchange(id, params) 1.14 end