[tex4ht-commits] [SCM] tex4ht updated: r730 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sun Jun 7 13:38:15 CEST 2020


Author: michal_h21
Date: 2020-06-07 14:38:15 +0300 (Sun, 07 Jun 2020)
New Revision: 730

Modified:
   trunk/lit/checklog.lua
Log:
Print messages only when errors found

Modified: trunk/lit/checklog.lua
===================================================================
--- trunk/lit/checklog.lua	2020-06-07 10:49:48 UTC (rev 729)
+++ trunk/lit/checklog.lua	2020-06-07 11:38:15 UTC (rev 730)
@@ -13,12 +13,12 @@
 
 local f = io.open(input_file, "r")
 local content = f:read("*all")
-print("Checking log file: " .. input_file)
 -- log parsing can be expensive on time, don't do it if we don't have
 -- any error message in the log file
 if content:match("\n!") then
   local errors = error_logparser.parse(content)
   if #errors > 0 then
+    print("Checking " .. input_file)
     print("Errors found:")
     for _, err in ipairs(errors) do
       print(err.filename or "?", err.line or "?", err.error)
@@ -26,5 +26,4 @@
     os.exit(1)
   end
 end
-print("No errors found")
 



More information about the tex4ht-commits mailing list.