[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Add test for unknown variants (a318beaf)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jan 6 22:21:52 CET 2022


On 06/01/2022 20:45, Frank Mittelbach wrote:
> Am 06.01.22 um 15:07 schrieb Joseph Wright:
>> +============================================================
>> +TEST 3:  Unknown variant
>> +============================================================
>> +! Use of \??? doesn't match its definition.
>> +<argument> \???
>> +                 ! LaTeX3 Error: Unknown arg expansion "XX"
>> +l. ...  }
> 
> by the way, why is this still saying LaTeX3 error? I thought we agreed 
> on something like something like
> 
>    ! LaTeX cmd Error: Required argument missing for \foo.
> 
> not sure what the "type/module" should be, but I think it should stay 
> being "LaTeX XXX Error:" or perhaps for kernel errors just "LaTeX 
> Error:" or "L3 programming layer Error:" but that probably takes out too 
> much out of the few chars available in an expandable message
> 
> frank
> 

Currently, all "kernel" messages go down as "LaTeX3":

     \prop_gput:Nnn \g_msg_module_name_prop { kernel } { LaTeX3 }
     \prop_gput:Nnn \g_msg_module_type_prop { kernel } { }

We could make this one explicitly "cmd", or change the output for kernel 
messages, or ...

Joseph


More information about the latex3-commits mailing list.