mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Small fix in error messages
This commit is contained in:
+1
-1
@@ -779,7 +779,7 @@ object Cache {
|
|||||||
checksums = checksums,
|
checksums = checksums,
|
||||||
logger = logger,
|
logger = logger,
|
||||||
pool = pool
|
pool = pool
|
||||||
).leftMap(_.message).map { f =>
|
).leftMap(_.describe).map { f =>
|
||||||
// FIXME Catch error here?
|
// FIXME Catch error here?
|
||||||
new String(NioFiles.readAllBytes(f.toPath), "UTF-8")
|
new String(NioFiles.readAllBytes(f.toPath), "UTF-8")
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -5,7 +5,9 @@ import java.io.File
|
|||||||
sealed abstract class FileError(
|
sealed abstract class FileError(
|
||||||
val `type`: String,
|
val `type`: String,
|
||||||
val message: String
|
val message: String
|
||||||
) extends Product with Serializable
|
) extends Product with Serializable {
|
||||||
|
def describe: String = s"${`type`}: $message"
|
||||||
|
}
|
||||||
|
|
||||||
object FileError {
|
object FileError {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user