From: Francois Fleuret Date: Tue, 6 Dec 2016 09:47:55 +0000 (+0100) Subject: Fixed the error message, which was causing an error. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=profiler-torch.git;a=commitdiff_plain;h=f59950ed20a2d471c59e2c23bc41b50111a54cd6 Fixed the error message, which was causing an error. --- 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)