[latex3-commits] [git/LaTeX3-latex3-latex2e] options: Add unknown option message (d48adbfd)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Nov 30 21:38:37 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : options
Link       : https://github.com/latex3/latex2e/commit/d48adbfdb305f516db097f4c43fccf148470b20f

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

commit d48adbfdb305f516db097f4c43fccf148470b20f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Nov 30 20:38:37 2021 +0000

    Add unknown option message


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

d48adbfdb305f516db097f4c43fccf148470b20f
 base/ltkeys.dtx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index 21513c37..24b8717b 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -181,7 +181,7 @@
           {
             unknown .code:n =
               {
-                \msg_error:nnxx { keyvalue } { option-unknown }
+                \msg_error:nnxx { keys } { option-unknown }
                   { \l_keys_key_str } { \@currname }
               }
           }
@@ -194,6 +194,12 @@
     \cs_set_eq:NN \@unprocessedoptions \scan_stop:
     \@@_option_end:
   }
+\msg_new:nnnn { keys } { option-unknown }
+  { Unknown~option~'#1'~for~package~#2. }
+  {
+    LaTeX~has~been~asked~to~set~an~option~called~'#1'~
+    but~the~#2~package~has~not~created~an~option~with~this~name.
+  }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list.