Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lucasgautheron/0207972b7a63123af1ccbff86ca707b0 to your computer and use it in GitHub Desktop.
Save lucasgautheron/0207972b7a63123af1ccbff86ca707b0 to your computer and use it in GitHub Desktop.
Compilation error
constructor cannot be instantiated to expected type;
found : scala.util.Failure[T]
required: String
In /home/lucas/Documents/Jeux/ActionFPS/web/app/lib/GameTailer.scala:18
14import scala.util.{Failure, Success}
15
16class GameTailer(validServers: ValidServers, file: File, endOnly: Boolean)(callback: JsonGame => Unit)
17 extends CallbackTailer(file, endOnly)({
18 case Failure(reason) =>
19 Logger.info(s"Logger for $file failed to read a line: $reason")
20 case Success(line) =>
21 line.split("\t").toList match {
22 case List(id, _, _, json) =>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment