Skip to content

Commit f85a6f8

Browse files
committed
Expand waitFor logs
1 parent ba54836 commit f85a6f8

File tree

1 file changed

+3
-2
lines changed
  • core/src/commonTest/kotlin/com/powersync/testutils

1 file changed

+3
-2
lines changed

core/src/commonTest/kotlin/com/powersync/testutils/WaitFor.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ internal suspend inline fun waitFor(
1515
try {
1616
test()
1717
return
18-
} catch (_: Error) {
18+
} catch (e: Error) {
1919
// Treat exceptions as failed
20+
println("waitFor: failed with $e")
2021
}
2122
delay(interval)
2223
} while (begin.elapsedNow() < timeout)
2324

24-
throw Exception("Timeout reached")
25+
throw Exception("waitFor() Timeout reached")
2526
}

0 commit comments

Comments
 (0)