Skip to content

Commit

Permalink
Merge branch 'caipivara-feature/print-stacktrace-for-exceptions'
Browse files Browse the repository at this point in the history
  • Loading branch information
raniejade committed Jan 29, 2017
2 parents eeaa58d + 4377b27 commit 6a1c5a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class ThrowableCollector {

fun isEmpty() = throwable == null


fun assertEmpty() {
if (throwable != null) {
throw throwable!!
throwable?.let {
if (it !is AssertionError) it.printStackTrace()
throw it
}
}
}

0 comments on commit 6a1c5a3

Please sign in to comment.