Skip to content

Commit

Permalink
Fix #1585
Browse files Browse the repository at this point in the history
  • Loading branch information
hvesalai committed Nov 2, 2017
1 parent b2db9e3 commit 436fb55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions slick/src/main/scala/slick/basic/BasicBackend.scala
Expand Up @@ -186,10 +186,14 @@ trait BasicBackend { self =>
} (DBIO.sameThreadExecutionContext) } (DBIO.sameThreadExecutionContext)
} catch { } catch {
case NonFatal(ex) => case NonFatal(ex) =>
throw (t1 match { val e = t1 match {
case Failure(t) if keepFailure => t case Failure(t) if keepFailure => t
case _ => ex case _ => ex
}) }

if (!p.tryFailure(e)) {
actionLogger.warn("Exception after promise completed", e)
}
} }
} (ctx.getEC(ec)) } (ctx.getEC(ec))
p.future p.future
Expand Down

0 comments on commit 436fb55

Please sign in to comment.