better error messages

This commit is contained in:
Maximilian Keßler 2022-01-17 23:27:00 +01:00
parent 34888f7d4c
commit fa1f76ac52
2 changed files with 3 additions and 3 deletions

View File

@ -1284,7 +1284,7 @@
\cs_if_exist:cTF { @@_use_group_#1: } \cs_if_exist:cTF { @@_use_group_#1: }
{ {
\msg_error:nnnnn { groupthm } { wrong ~ definition } \msg_error:nnnnn { groupthm } { wrong ~ definition }
{ group } { #1 } { already } { theorem ~ group } { #1 } { already }
} }
{ {
\@@_declare_theorem_group_aux:nnnnn { #1 } { #2 } { #3 } { #4 } { #5 } \@@_declare_theorem_group_aux:nnnnn { #1 } { #2 } { #3 } { #4 } { #5 }
@ -1313,7 +1313,7 @@
} }
{ {
\msg_error:nnnnn { groupthm } { wrong ~ definition } \msg_error:nnnnn { groupthm } { wrong ~ definition }
{ group } { #1 } { not } { theorem ~ group } { #1 } { not }
} }
} }
% \end{macrocode} % \end{macrocode}

View File

@ -48,7 +48,7 @@
} }
\msg_new:nnn { groupthm } { wrong ~ definition } \msg_new:nnn { groupthm } { wrong ~ definition }
{ {
Bad ~ definition ~ of ~ #1 ~ '#2' ~ \msg_line_context:, ~ #1 ~ is ~ #3 defined. Bad ~ definition ~ of ~ #1 ~ '#2' ~ \msg_line_context:, ~ #1 ~ is ~ #3 ~ defined.
} }
\hook_new:n { __groupthm/prename } \hook_new:n { __groupthm/prename }
\hook_new:n { __groupthm/postname } \hook_new:n { __groupthm/postname }