[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Slightly nicer error message on load failure (16bb006)

Marcel Fabian Krüger tex at 2krueger.de
Mon Feb 10 13:13:09 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/16bb0066e659de92610ba6e112fe3adc8bcdbe3a

>---------------------------------------------------------------

commit 16bb0066e659de92610ba6e112fe3adc8bcdbe3a
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon Feb 10 13:13:09 2020 +0100

    Slightly nicer error message on load failure


>---------------------------------------------------------------

16bb0066e659de92610ba6e112fe3adc8bcdbe3a
 src/luaotfload-main.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index 0b31e90..bf19ae1 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -164,8 +164,8 @@ local make_loader = function (prefix, load_helper)
             io.write "\n"
             local msg = luaotfload.log and luaotfload.log.report or print
             msg ("both", 0, "load", "FATAL ERROR")
-            msg ("both", 0, "load", "  × Failed to load module %q.",
-                 tostring (modname))
+            msg ("both", 0, "load", "  × Failed to load %q module %q.",
+                 tostring (prefix), tostring (name))
             local lines = string.split (data, "\n\t")
             if not lines then
                 msg ("both", 0, "load", "  × Error message: %q", data)





More information about the latex3-commits mailing list.