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

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jan 12 18:26:18 CET 2022


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

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

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

    Add unknown option message


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

e91764dacbbe2b45428f3ff7eb52f0e2fd2dd41b
 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.