commit a02ab22c4a8ca407251f1a57e0c66450ffdf9e94 Author: Scott Kostyshak <skost...@lyx.org> Date: Fri Feb 21 23:05:09 2025 +0100
tex2lyx: fix assertion if no argument If no argument, show usage output and exit with error. Since 2e45185c, exiting is handled inside the function that gives the error message. Since a5115d4e, we have separate helper functions to (1) display debug output without exiting and to (2) display an error message and exit. This present commit changes the case of having no argument from category (1) to (2). Issue reported on the ML here: https://www.mail-archive.com/search?l=mid&q=vpam5l%24na2%241%40ciao.gmane.io --- src/tex2lyx/tex2lyx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/tex2lyx.cpp b/src/tex2lyx/tex2lyx.cpp index 21301034aa..9abb491785 100644 --- a/src/tex2lyx/tex2lyx.cpp +++ b/src/tex2lyx/tex2lyx.cpp @@ -1157,7 +1157,7 @@ int TeX2LyXApp::run() easyParse(); if (argc_ <= 1) - error_message("Not enough arguments."); + error_with_message("Not enough arguments."); try { init_package(internal_path(os::utf8_argv(0)), -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs