Skip to content

Commit 2e664b9

Browse files
ChronarakLPTK
andauthored
Update hkmc2/shared/src/main/scala/hkmc2/utils/Scope.scala
Co-authored-by: Lionel Parreaux <lionel.parreaux@gmail.com>
1 parent 3e04797 commit 2e664b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hkmc2/shared/src/main/scala/hkmc2/utils/Scope.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ class Scope
9696
case t: syntax.Tree.TypeDef => t.head.toLoc
9797
.flatten.orElse(l.toLoc)
9898
case other => other.toLoc
99-
raise(ErrorReport(msg"No definition found in scope for: ${l.toString} (${l.getClass.toString})" -> loc :: Nil,
99+
raise(ErrorReport(msg"No definition found in scope for '${l.nme}'" -> loc :: Nil,
100+
extraInfo = Some(l -> l.getClass),
101+
source = Diagnostic.Source.Compilation))
100102
source = Diagnostic.Source.Compilation))
101103
l.nme
102104

0 commit comments

Comments
 (0)