Config refactoring (#61)

* Config refactoring

* node running bug fixed

* upnp config

* test compilation bug fixed

* ContractNodeIntegrationSpec fixed

* rocksdb reference conf
This commit is contained in:
Dmitry Kurinskiy 2018-02-22 15:15:50 +03:00 committed by GitHub
parent 65fe1184a8
commit d88a5299e7

View File

@ -23,9 +23,11 @@ import cats.data.EitherT
import scala.language.higherKinds
import scala.util.control.{ NoStackTrace, NonFatal }
@deprecated("Use co-fail's CryptoErr instead", "21.02.2018")
case class CryptoErr(errorMessage: String) extends Throwable(errorMessage) with NoStackTrace
object CryptoErr {
@deprecated("Use co-fail's CryptoErr.catchNonFatal instead", "21.02.2018")
def nonFatalHandling[F[_] : Applicative, A](a: A)(errorText: String): EitherT[F, CryptoErr, A] = {
try EitherT.pure(a)
catch {