Skip to content

Commit bc0001b

Browse files
authored
Merge pull request #95 from lucidsoftware/rferguson-log-bad-stamps
log unrecognized stamp types, but just go ahead and use them
2 parents e2c105d + b7ed2f4 commit bc0001b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/higherkindness/rules_scala/workers/common/AnnexMapper.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object AnnexMapper {
4141
case farmHash: FarmHash => farmHash
4242
case hash: Hash => hash
4343
case lastModified: LastModified => new LastModified(JarHelper.DEFAULT_TIMESTAMP)
44-
case _ => throw new Exception("Unexpected Stamp type encountered when writing.")
44+
case _ => throw new Exception(s"Unexpected Stamp type encountered when writing. ${stamp.getClass} -- $stamp")
4545
}
4646
}
4747

@@ -66,7 +66,7 @@ object AnnexMapper {
6666
case lastModified: LastModified => {
6767
Stamper.forLastModifiedP(PlainVirtualFileConverter.converter.toPath(file))
6868
}
69-
case _ => throw new Exception("Unexpected Stamp type encountered when reading")
69+
case _ => throw new Exception(s"Unexpected Stamp type encountered when reading ${stamp.getClass} -- $stamp")
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)