diff --git a/scripts/check_site.lua b/scripts/check_site.lua
index b268e0b31f7ecb5dae3164ec40239cdfed9b4779..3fca6a8cfb590f51904e9d4288d789a1ea332eec 100644
--- a/scripts/check_site.lua
+++ b/scripts/check_site.lua
@@ -108,7 +108,7 @@ local function var_error(path, val, msg)
 		src = site_src()
 	end
 
-	config_error(src, 'expected %s to %s, but it is %s', path_to_string(path), msg, tostring(val))
+	config_error(src, 'expected %s to %s, but it is %s (a %s value)', path_to_string(path), msg, tostring(val), type(val))
 end