From fa1f76ac5273d58527b8338538b7607b294f4353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 17 Jan 2022 23:27:00 +0100 Subject: [PATCH] better error messages --- doc/environments/groupthm/groupthm.dtx | 4 ++-- doc/environments/groupthm/groupthm.sty | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/environments/groupthm/groupthm.dtx b/doc/environments/groupthm/groupthm.dtx index 48ebea5..22ae60f 100644 --- a/doc/environments/groupthm/groupthm.dtx +++ b/doc/environments/groupthm/groupthm.dtx @@ -1284,7 +1284,7 @@ \cs_if_exist:cTF { @@_use_group_#1: } { \msg_error:nnnnn { groupthm } { wrong ~ definition } - { group } { #1 } { already } + { theorem ~ group } { #1 } { already } } { \@@_declare_theorem_group_aux:nnnnn { #1 } { #2 } { #3 } { #4 } { #5 } @@ -1313,7 +1313,7 @@ } { \msg_error:nnnnn { groupthm } { wrong ~ definition } - { group } { #1 } { not } + { theorem ~ group } { #1 } { not } } } % \end{macrocode} diff --git a/doc/environments/groupthm/groupthm.sty b/doc/environments/groupthm/groupthm.sty index c768656..b4c1f55 100644 --- a/doc/environments/groupthm/groupthm.sty +++ b/doc/environments/groupthm/groupthm.sty @@ -48,7 +48,7 @@ } \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/postname }