Skip to content

Commit

Permalink
fixing a bug with an unnecessary exception throwing in sse method (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
eryshev authored Jan 15, 2019
1 parent 73ecc9c commit a06e3c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val devMode = settingKey[Boolean]("Some build optimization are applied in devMode.")
val writeClasspath = taskKey[File]("Write the project classpath to a file.")

val VERSION = "0.5.0"
val VERSION = "0.5.1"

lazy val catsCore = "1.5.0"
lazy val circe = "0.10.1"
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/com/criteo/cuttle/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ package object utils {
.evalMap[IO, Option[A]](_ => IO.shift.flatMap(_ => thunk))
.flatMap({
case Some(x) => Stream(x)
case None => Stream.raiseError[IO](sys.error("Could not get result to stream"))
case None => Stream.raiseError[IO](new RuntimeException("Could not get result to stream"))
})
.changes
.evalMap[IO, Json](r => encode(r))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.criteo.cuttle.cron

import java.time.Instant

import scala.concurrent.stm.Txn.ExternalDecider
import scala.concurrent.stm._
import cats.effect.IO
Expand Down

0 comments on commit a06e3c2

Please sign in to comment.