projects
/
profiler-torch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ce9a2
)
Fixed the error message, which was causing an error.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 6 Dec 2016 09:47:55 +0000
(10:47 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 6 Dec 2016 09:47:55 +0000
(10:47 +0100)
profiler.lua
patch
|
blob
|
history
diff --git
a/profiler.lua
b/profiler.lua
index
77398a0
..
4420af7
100644
(file)
--- a/
profiler.lua
+++ b/
profiler.lua
@@
-64,7
+64,10
@@
function profiler.decorate(model, functionsToDecorate)
-- save models anymore.
if rawget(model, name) then
- error('We decorate the class, not the objects, and there is a ' .. name .. ' in ' .. model)
+ error('We decorate the class, not the objects, and there is a `'
+ .. name
+ .. '\' function in '
+ .. tostring(model))
end
local toDecorate = getmetatable(model)