~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5897a8d
)
doc/sod.sty: Report errors for undeclared description categories.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 23 Jun 2020 09:18:04 +0000
(10:18 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 23 Jun 2020 09:18:04 +0000
(10:18 +0100)
doc/sod.sty
patch
|
blob
|
blame
|
history
diff --git
a/doc/sod.sty
b/doc/sod.sty
index
c35e110
..
592ff5c
100644
(file)
--- a/
doc/sod.sty
+++ b/
doc/sod.sty
@@
-306,7
+306,14
@@
\def\@descname@i[#1]#2{%
\expandafter\let\expandafter\@tempa\csname cat!#2\endcsname%
\expandafter\let\expandafter\@tempb\csname modcat/#1\endcsname%
\def\@descname@i[#1]#2{%
\expandafter\let\expandafter\@tempa\csname cat!#2\endcsname%
\expandafter\let\expandafter\@tempb\csname modcat/#1\endcsname%
- \ifx\@tempa\relax\@tempb{#2}\else\@tempa\@tempb\fi}
+ \ifx\@tempa\relax\PackageError{sod}{unknown description category `#2'}%
+ {I don't know what `#2' means as a thing you might try to\MessageBreak
+ document. Maybe you mistyped it, or forgot to say\MessageBreak
+ `\protect\definedescribecategory' for it. For now I'm going\MessageBreak
+ just use the literal string `#2' and hope that doesn't look\MessageBreak
+ too terrible.}%
+ \@tempb{#2}%
+ \else\@tempa\@tempb\fi}
%% Call a modifier method.
\def\@mod@dispatch#1#2{\csname #1/#2\endcsname}
%% Call a modifier method.
\def\@mod@dispatch#1#2{\csname #1/#2\endcsname}