Skip to content

Commit

Permalink
Avoid MatchError
Browse files Browse the repository at this point in the history
  • Loading branch information
JLLK committed Feb 17, 2016
1 parent 2f4cdbc commit b76d089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/com/github/shadowsocks/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package com.github

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import scala.util.{Failure, Try}
import scala.util.{Success, Failure, Try}

/**
* @author Mygod
*/
package object shadowsocks {

val handleFailure: PartialFunction[Try[_], Unit] = {
case Success(_) =>
case Failure(e) => e.printStackTrace()
}

Expand Down

0 comments on commit b76d089

Please sign in to comment.