All is said in the commit comment. My bad -- Alexander Yakushev
"If or if-not. There is no try..catch-based flow control in Clojure." -- Master Joda
>From 1987768bcf997e10c30facd02d3d0b40f0fa0a1f Mon Sep 17 00:00:00 2001 From: Alexander Yakushev <[email protected]> Date: Thu, 19 Apr 2012 15:59:37 +0300 Subject: [PATCH] gears.debug: Print plain non-table values in dump_raw dump_raw function wasn't printing the plain (non-table) value if the tag was not specified. Signed-off-by: Alexander Yakushev <[email protected]> --- lib/gears/debug.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gears/debug.lua.in b/lib/gears/debug.lua.in index 910e62d..2817c7f 100644 --- a/lib/gears/debug.lua.in +++ b/lib/gears/debug.lua.in @@ -35,11 +35,11 @@ local function dump_raw(data, shift, tag) local result = "" if tag then - result = result .. tostring(tag) .. " : " .. tostring(data) + result = result .. tostring(tag) .. " : " end if type(data) ~= "table" then - return result .. " (" .. type(data) .. ")" + return result .. tostring(data) .. " (" .. type(data) .. ")" end shift = (shift or "") .. " " -- 1.7.10
