bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] improve error message


From: Luca Dariz
Subject: [PATCH 2/2] improve error message
Date: Sun, 3 Apr 2022 17:00:20 +0200

* parser.y: add information about type names

Signed-off-by: Luca Dariz <luca@orpolo.org>
---
 parser.y | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parser.y b/parser.y
index 8d6b2aa..8521a84 100644
--- a/parser.y
+++ b/parser.y
@@ -526,8 +526,8 @@ IPCType                     :       PrimIPCType
            $$.size = $1.size;
        else
        {
-           error("sizes in IPCTypes (%d, %d) aren't equal",
-                 $1.size, $3.size);
+           error("sizes in IPCTypes (%s %s %d, %s %s %d) aren't equal",
+                 $1.instr, $1.outstr, $1.size, $3.instr, $3.outstr, $3.size);
            $$.size = 0;
        }
     }
-- 
2.30.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]