Evaluate expression: add message for multiple output error from extract function
This commit is contained in:
+2
-2
@@ -62,11 +62,11 @@ fun getFunctionForExtractedFragment(
|
|||||||
ErrorMessage.SUPER_CALL -> "Cannot perform an action for expression with super call"
|
ErrorMessage.SUPER_CALL -> "Cannot perform an action for expression with super call"
|
||||||
ErrorMessage.DENOTABLE_TYPES -> "Cannot perform an action because following types are unavailable from debugger scope"
|
ErrorMessage.DENOTABLE_TYPES -> "Cannot perform an action because following types are unavailable from debugger scope"
|
||||||
ErrorMessage.ERROR_TYPES -> "Cannot perform an action because this code fragment contains erroneous types"
|
ErrorMessage.ERROR_TYPES -> "Cannot perform an action because this code fragment contains erroneous types"
|
||||||
|
ErrorMessage.MULTIPLE_EXIT_POINTS,
|
||||||
ErrorMessage.DECLARATIONS_OUT_OF_SCOPE,
|
ErrorMessage.DECLARATIONS_OUT_OF_SCOPE,
|
||||||
ErrorMessage.OUTPUT_AND_EXIT_POINT,
|
ErrorMessage.OUTPUT_AND_EXIT_POINT,
|
||||||
ErrorMessage.MULTIPLE_EXIT_POINTS,
|
|
||||||
ErrorMessage.DECLARATIONS_ARE_USED_OUTSIDE -> "Cannot perform an action for this expression"
|
ErrorMessage.DECLARATIONS_ARE_USED_OUTSIDE -> "Cannot perform an action for this expression"
|
||||||
else -> throw AssertionError("Unexpected error: $errorMessage")
|
ErrorMessage.MULTIPLE_OUTPUT -> throw AssertionError("Unexpected error: $errorMessage")
|
||||||
}
|
}
|
||||||
errorMessage.additionalInfo?.let { "$message: ${it.joinToString(", ")}" } ?: message
|
errorMessage.additionalInfo?.let { "$message: ${it.joinToString(", ")}" } ?: message
|
||||||
}.joinToString(", ")
|
}.joinToString(", ")
|
||||||
|
|||||||
Reference in New Issue
Block a user