Skip to content

Commit dc09c37

Browse files
committed
Better exception messages
1 parent 00a47dd commit dc09c37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-test/common/src/internal/TestMainDispatcher.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ internal class TestMainDispatcher(delegate: CoroutineDispatcher?, mainInitExcept
9898

9999
private fun missing(): Nothing {
100100
val message = if (mainInitException == null)
101-
"Dispatchers.Main is not available was not provided for tests via Dispatchers.setMain."
101+
"Dispatchers.Main is not available and was not provided for tests via Dispatchers.setMain."
102102
else
103-
"Dispatchers.Main failed to initialize and was not replaced via Dispatchers.setMain."
103+
"Dispatchers.Main failed to initialize and was not replaced for tests via Dispatchers.setMain."
104104
throw IllegalStateException(message, mainInitException)
105105
}
106106

0 commit comments

Comments
 (0)