webmcp

diff framework/env/execute/chunk.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
line diff
     1.1 --- a/framework/env/execute/chunk.lua	Sun Mar 22 23:08:18 2015 +0100
     1.2 +++ b/framework/env/execute/chunk.lua	Sun Mar 22 23:10:07 2015 +0100
     1.3 @@ -35,10 +35,7 @@
     1.4      WEBMCP_BASE_PATH, 'app', app, module, chunk .. '.lua'
     1.5    )
     1.6  
     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 = assert(loadcached(file_path))
    1.12  
    1.13    if id or params then
    1.14      param.exchange(id, params)

Impressum / About Us