[latex3-commits] [git/LaTeX3-latex3-latex2e] kernel-msgs: Test the correct error message (4245ae25)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed May 26 18:10:42 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : kernel-msgs
Link       : https://github.com/latex3/latex2e/commit/4245ae25dc501ab7ab14e6c3a11f506c978320d6

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

commit 4245ae25dc501ab7ab14e6c3a11f506c978320d6
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed May 26 13:10:42 2021 -0300

    Test the correct error message


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

4245ae25dc501ab7ab14e6c3a11f506c978320d6
 base/testfiles-lthooks/ltcmdhooks-011.lvt |  2 +-
 base/testfiles-lthooks/ltcmdhooks-011.tlg | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/base/testfiles-lthooks/ltcmdhooks-011.lvt b/base/testfiles-lthooks/ltcmdhooks-011.lvt
index 2f121573..ae6dd568 100644
--- a/base/testfiles-lthooks/ltcmdhooks-011.lvt
+++ b/base/testfiles-lthooks/ltcmdhooks-011.lvt
@@ -19,7 +19,7 @@
 \AddToHook{cmd/detokenize/before}{error}
 
 % cant-patch expl3
-\AddToHook{cmd/__hook_cmd_begindocument_code:/before}{error}
+\AddToHook{cmd/__hook_debug:n/before}{error}
 
 {\catcode`\&=11 \gdef\mycmd#1{test & me}}
 
diff --git a/base/testfiles-lthooks/ltcmdhooks-011.tlg b/base/testfiles-lthooks/ltcmdhooks-011.tlg
index 4c65f6c0..2ebb5f1f 100644
--- a/base/testfiles-lthooks/ltcmdhooks-011.tlg
+++ b/base/testfiles-lthooks/ltcmdhooks-011.tlg
@@ -22,14 +22,13 @@ For immediate help type H <return>.
 l. ...\AddToHook{cmd/detokenize/before}{error}
 You tried to add a hook to `\detokenize', but LaTeX was not able to add the
 hook to that command because `\detokenize' is not a macro.
-! LaTeX hooks Error: Command `\__hook_cmd_begindocument_code:' cannot have
-(hooks)              hooks because it doesn't exist.
+! LaTeX hooks Error: Command `\__hook_debug:n' cannot have hooks because it is
+(hooks)              a private expl3 macro.
 For immediate help type H <return>.
  ...                                              
-l. ......ook_cmd_begindocument_code:/before}{error}
-You tried to add a hook to `\__hook_cmd_begindocument_code:', but LaTeX was
-not able to add the hook to that command because
-`\__hook_cmd_begindocument_code:' doesn't exist.
+l. ...\AddToHook{cmd/__hook_debug:n/before}{error}
+You tried to add a hook to `\__hook_debug:n', but LaTeX was not able to add
+the hook to that command because `\__hook_debug:n' is a private expl3 macro.
 ! LaTeX hooks Error: Command `\mycmd' cannot have hooks because it can't be
 (hooks)              retokenized cleanly.
 For immediate help type H <return>.





More information about the latex3-commits mailing list.