Skip to content

Commit cc1b306

Browse files
committed
Use shorter module names in error message
1 parent 0fd71cf commit cc1b306

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HB/common/database.elpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ assert-building-bottom-up CurrentClass C3n :-
232232
class-def (class C3n X Y),
233233
CurrentClass = class CC _ _,
234234
if (not (sub-class? CurrentClass (class C3n X Y)))
235-
(gref->modname CC 2 "." Before, gref->modname C3n 2 "." After,
235+
(gref->modname CC 1 "." Before, gref->modname_short C3n "." After,
236236
Msg1 is "- declare structure " ^ Before ^ " before structure " ^ After ^ ";",
237237
coq.error "You must declare the hierarchy bottom-up."
238238
"There are two ways out:"

tests/missing_join_error.v.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
The command has indeed failed with message:
22
You must declare the hierarchy bottom-up. There are two ways out:
3-
- declare structure missing_join_error.A2B1 before structure missing_join_error.B2A1;
3+
- declare structure A2B1 before structure B2A1;
44
- declare an additional structure from which both inherit

0 commit comments

Comments
 (0)