mirror of https://github.com/sbt/sbt.git
Small fix in error messages
This commit is contained in:
parent
b917d43c41
commit
0f914cf781
|
|
@ -779,7 +779,7 @@ object Cache {
|
|||
checksums = checksums,
|
||||
logger = logger,
|
||||
pool = pool
|
||||
).leftMap(_.message).map { f =>
|
||||
).leftMap(_.describe).map { f =>
|
||||
// FIXME Catch error here?
|
||||
new String(NioFiles.readAllBytes(f.toPath), "UTF-8")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@ import java.io.File
|
|||
sealed abstract class FileError(
|
||||
val `type`: String,
|
||||
val message: String
|
||||
) extends Product with Serializable
|
||||
) extends Product with Serializable {
|
||||
def describe: String = s"${`type`}: $message"
|
||||
}
|
||||
|
||||
object FileError {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue