Skip to content

Commit b4626f2

Browse files
committed
lib/dtutils.lua - changed log message to error on fail to load. Added
printing of the returned error.
1 parent 2fc8ed7 commit b4626f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/dtutils.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,12 @@ dtutils.libdoc.functions["prequire"] = {
180180
}
181181

182182
function dtutils.prequire(req_name)
183-
local status, lib = pcall(require, req_name)
183+
local status, lib = pcall(require, san_req_name)
184184
if status then
185185
log.msg(log.info, "Loaded " .. req_name)
186186
else
187-
log.msg(log.info, "Error loading " .. req_name)
187+
log.msg(log.error, "Error loading " .. req_name)
188+
log.msg(log.error, "Error returned is " .. lib)
188189
end
189190
return status, lib
190191
end

0 commit comments

Comments
 (0)