Skip to content

Commit 390d987

Browse files
Merge pull request #4864 from dotty-staging/improve-tasty-uuid-error-message
Print classfile when failing a UUID Tasty check
2 parents 23bbcbc + 621762c commit 390d987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ class ClassfileParser(
838838
val expectedUUID = new UUID(reader.readUncompressedLong(), reader.readUncompressedLong())
839839
val tastyUUID = new TastyHeaderUnpickler(tastyBytes).readHeader()
840840
if (expectedUUID != tastyUUID)
841-
ctx.error(s"Tasty UUID ($tastyUUID) file did not correspond the tasty UUID declared in the classfile ($expectedUUID).")
841+
ctx.error(s"Tasty UUID ($tastyUUID) file did not correspond the tasty UUID ($expectedUUID) declared in the classfile $classfile.")
842842
return unpickleTASTY(tastyBytes)
843843
}
844844
}

0 commit comments

Comments
 (0)