X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=profiler-torch.git;a=blobdiff_plain;f=profiler.lua;h=4420af79b203464c276bc573bfb95459ddc461e9;hp=77398a01e3b1c21abcd2a17ef000c55f042a24a3;hb=f59950ed20a2d471c59e2c23bc41b50111a54cd6;hpb=78ce9a217ef066c8f01b1531c27c6ef38c45ece1 diff --git a/profiler.lua b/profiler.lua index 77398a0..4420af7 100644 --- 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)