From 603ca0448badb758df030fdbc953992ab5990ac3 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Wed, 13 Jun 2018 12:14:31 +0200
Subject: added errors and warnings

---
 arabluatex.dtx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index e4ecaa0..128a78f 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4180,6 +4180,19 @@ wa-ya.sIru ta.hta 'l-jild-i
   \AtBeginDocument{\deffootnote{2em}{1.6em}{\LR{\thefootnotemark}.\enskip}}}}
 %    \end{macrocode}
 % \end{macro}
+% \subsection*{Errors and Warnings}
+%    \begin{macrocode}
+\newcommand{\al@warning}[1]{\PackageWarning{arabluatex}{#1}}
+\newcommand{\al@error}[2]{\PackageError{arabluatex}{#1}{#2}}
+\newcommand{\al@wrong@nesting}{\al@error{%
+    (RL/LR)\string\footnote\space is not allowed\MessageBreak inside
+    \string\RL{} and \string\RL{} commands}{%
+    Get rid of the surrounding \string\RL{} or \string\LR{} command.}}
+\newcommand{\al@wrong@mark}{\al@warning{%
+    Unknown Arabic mark in \string\arbmark{}. Replaced
+    with\MessageBreak <??>. Please check your code}}
+%    \end{macrocode}
+% 
 % That is it. Say goodbye before leaving.
 %
 % \iffalse
-- 
cgit v1.2.3

