Skip to content

Commit 70e8f5c

Browse files
committed
Tweak diagndostic message
1 parent 7219569 commit 70e8f5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ class TreePickler(pickler: TastyPickler) {
581581

582582
def pickle(trees: List[Tree])(implicit ctx: Context) = {
583583
trees.foreach(tree => if (!tree.isEmpty) pickleTree(tree))
584-
assert(forwardSymRefs.isEmpty, i"unresolved symbols: ${forwardSymRefs.keySet.toList}%, % when pickling ${ctx.source}")
584+
def missing = forwardSymRefs.keySet.toList.map(_.showLocated)
585+
assert(forwardSymRefs.isEmpty, i"unresolved symbols: $missing%, % when pickling ${ctx.source}")
585586
}
586587

587588
def compactify() = {

0 commit comments

Comments
 (0)