Tweak error message

This commit is contained in:
Alexandre Archambault 2017-06-24 15:22:00 +02:00
parent d437cfb87d
commit 245a8c9e9e
1 changed files with 5 additions and 1 deletions

View File

@ -190,7 +190,11 @@ object Cache {
// TODO If Cache is made an (instantiated) class at some point, allow to log that exception.
None
case NonFatal(e) =>
Some(-\/(FileError.DownloadError(s"Caught $e${Option(e.getMessage).fold("")(" (" + _ + ")")}")))
Some(-\/(
FileError.DownloadError(
s"Caught $e${Option(e.getMessage).fold("")(" (" + _ + ")")} while downloading $url"
)
))
}
resOpt match {