Add cause exception to AssertionError
(cherry picked from commit 0b60cbb)
This commit is contained in:
committed by
Nikolay Krasko
parent
3d6ac2f277
commit
7ba0436d7f
@@ -194,11 +194,12 @@ abstract class KotlinDebuggerTestBase : KotlinDebuggerTestCase() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
dp.managerThread!!.schedule(dp.createStepIntoCommand(this, ignoreFilters, filters.get(chooseFromList - 1)))
|
dp.managerThread!!.schedule(dp.createStepIntoCommand(this, ignoreFilters, filters[chooseFromList - 1]))
|
||||||
}
|
}
|
||||||
catch(e: IndexOutOfBoundsException) {
|
catch(e: IndexOutOfBoundsException) {
|
||||||
throw AssertionError("Couldn't find smart step into command at: \n" +
|
throw AssertionError("Couldn't find smart step into command at: \n" +
|
||||||
runReadAction { debuggerContext.sourcePosition.elementAt.getElementTextWithContext() })
|
runReadAction { debuggerContext.sourcePosition.elementAt.getElementTextWithContext() },
|
||||||
|
e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user