mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 22:35:41 +00:00
Improve a panic message.
Estimated hours taken: 0.1 code_exprn: Improve a panic message.
This commit is contained in:
@@ -844,7 +844,9 @@ code_exprn__cache_exprn(Var, Rval) -->
|
||||
(
|
||||
{ map__search(Vars0, Var, _) }
|
||||
->
|
||||
{ error("code_exprn__cache_exprn: existing definition of var") }
|
||||
code_exprn__get_var_name(Var, Name),
|
||||
{ string__append("code_exprn__cache_exprn: existing definition of variable ", Name, Msg) },
|
||||
{ error(Msg) }
|
||||
;
|
||||
[]
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user