Skip to content

Commit 36c66e9

Browse files
committed
Avoid huge pickling error messages
1 parent 417f720 commit 36c66e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class TreePickler(pickler: TastyPickler) {
166166
}
167167
catch {
168168
case ex: AssertionError =>
169-
println(i"error when pickling type $tpe")
169+
println(em"error when pickling type $tpe")
170170
throw ex
171171
}
172172
}
@@ -661,7 +661,7 @@ class TreePickler(pickler: TastyPickler) {
661661
case ex: TypeError =>
662662
report.error(ex.toMessage, tree.srcPos.focus)
663663
case ex: AssertionError =>
664-
println(i"error when pickling tree $tree")
664+
println(em"error when pickling tree $tree")
665665
throw ex
666666
}
667667
}

0 commit comments

Comments
 (0)