[latex3-commits] [git/LaTeX3-latex3-latex3] master: Proper error message (75e2e56)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Apr 24 18:55:18 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/75e2e56c90d8b24c8d3bac355aef7bf064909170

>---------------------------------------------------------------

commit 75e2e56c90d8b24c8d3bac355aef7bf064909170
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Apr 24 17:55:18 2019 +0100

    Proper error message


>---------------------------------------------------------------

75e2e56c90d8b24c8d3bac355aef7bf064909170
 l3experimental/l3draw/l3draw-paths.dtx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/l3experimental/l3draw/l3draw-paths.dtx b/l3experimental/l3draw/l3draw-paths.dtx
index f110e11..143c8eb 100644
--- a/l3experimental/l3draw/l3draw-paths.dtx
+++ b/l3experimental/l3draw/l3draw-paths.dtx
@@ -880,7 +880,7 @@
           { \bool_set_true:c { l_@@_path_use_ ##1 _ bool } }
           {
             \cs_if_exist_use:cF { @@_path_use_action_ ##1 : }
-              { \ERROR }
+              { \msg_error:nnn { draw } { invalid-path-action } {##1} }
           }
       }
     \@@_softpath_round_corners:
@@ -1022,6 +1022,12 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \begin{macrocode}
+\msg_new:nnnn { draw } { invalid-path-action }
+  { Invalid~action~'#1'~for~path. }
+  { Paths~can~be~used~with~actions~'draw',~'clip',~'fill'~or~'stroke'. }
+% \end{macrocode}
+%
 %    \begin{macrocode}
 %</initex|package>
 %    \end{macrocode}





More information about the latex3-commits mailing list