Skip to content

Commit f3a6489

Browse files
committed
IOUtils - exception raised if relative path cannot be computed (no source root matches), this means there are some configuration problems and failing fast is better solution than generating inproper file paths (causing IOExceptions later).
1 parent d8bbb35 commit f3a6489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/IOUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ object IOUtils {
9494
)
9595
sourceRoot match {
9696
case Some(path: String) => src.replace(path, "")
97-
case _ => src
97+
case _ => throw new RuntimeException(s"No source root found for '$src'"); //TODO Change exception class
9898
}
9999
}
100100

0 commit comments

Comments
 (0)