From f59950ed20a2d471c59e2c23bc41b50111a54cd6 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Tue, 6 Dec 2016 10:47:55 +0100 Subject: [PATCH] Fixed the error message, which was causing an error. --- profiler.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.20.1