In the following, why is the exclamation mark (!) repeated in the error message?
\def\error#1#2{%
\begingroup
\errhelp{#2}%
\errmessage{^^J! package Error: #1^^J}%
\endgroup
}
\error{Stop now.}{Hi, don't go on.}
!
! package Error: Stop now.
latex.ltxor similar (but with word-wrapping and other goodies) inl3msg. – Joseph Wright♦ Oct 3 '12 at 7:13