From a985fd4c4b1e7033f1e723e319deefd7b7adfd36 Mon Sep 17 00:00:00 2001 From: Mooffie Date: Sun, 21 Dec 2014 18:31:44 +0200 Subject: [PATCH] Show exact error when template loading fails --- ldoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc.lua b/ldoc.lua index 8930c46..80672ee 100644 --- a/ldoc.lua +++ b/ldoc.lua @@ -753,7 +753,7 @@ if builtin_style or builtin_template then local function tmpwrite (name) local ok,text = pcall(require,'ldoc.html.'..name:gsub('%.','_')) if not ok then - quit("cannot find builtin template "..name) + quit("cannot find builtin template "..name.." ("..text..")") end if not utils.writefile(path.join(tmpdir,name),text) then quit("cannot write to temp directory "..tmpdir)