Created
January 8, 2017 10:51
-
-
Save lucasgautheron/0207972b7a63123af1ccbff86ca707b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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