[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[COMMITTED] gen: add explicative message to E_constraint raised from bou
From: |
Jose E. Marchesi |
Subject: |
[COMMITTED] gen: add explicative message to E_constraint raised from bounds failure |
Date: |
Mon, 11 Apr 2022 00:33:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
2022-04-11 Jose E. Marchesi <jemarch@gnu.org>
* libpoke/pkl-gen.pks (array_constructor): Add explicative message
to E_constraint raised from unsatisfied array boundaries.
(array_mapper): Likewise.
---
ChangeLog | 6 ++++++
libpoke/pkl-gen.pks | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 61f5b7e1..df1eebcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2022-04-11 Jose E. Marchesi <jemarch@gnu.org>
+ * libpoke/pkl-gen.pks (array_constructor): Add explicative message
+ to E_constraint raised from unsatisfied array boundaries.
+ (array_mapper): Likewise.
+
+2022-04-11 Jose E. Marchesi <jemarch@gnu.org>
+
* libpoke/pkl-gen.pks (array_mapper): Raise PVM_E_CONSTRAINT
instead of PVM_E_MAP_BOUNDS in case of array bound failure.
(array_constructor): Likewise.
diff --git a/libpoke/pkl-gen.pks b/libpoke/pkl-gen.pks
index 11930901..7405e82d 100644
--- a/libpoke/pkl-gen.pks
+++ b/libpoke/pkl-gen.pks
@@ -236,6 +236,9 @@
return
.bounds_fail:
push PVM_E_CONSTRAINT
+ push "msg"
+ push "array type boundaries couldn't be satisfied"
+ sset
raise
.end
@@ -427,6 +430,9 @@
return
.bounds_fail:
push PVM_E_CONSTRAINT
+ push "msg"
+ push "array type boundaries couldn't be satisfied"
+ sset
raise
.end
--
2.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [COMMITTED] gen: add explicative message to E_constraint raised from bounds failure,
Jose E. Marchesi <=