Refactor: Use RefactoringErrorHintException to report errors in test mode
This commit is contained in:
@@ -293,7 +293,7 @@ public class CodeInsightUtils {
|
|||||||
@NotNull String message, @NotNull String title,
|
@NotNull String message, @NotNull String title,
|
||||||
@Nullable String helpId
|
@Nullable String helpId
|
||||||
) {
|
) {
|
||||||
if (ApplicationManager.getApplication().isUnitTestMode()) throw new RuntimeException(message);
|
if (ApplicationManager.getApplication().isUnitTestMode()) throw new CommonRefactoringUtil.RefactoringErrorHintException(message);
|
||||||
CommonRefactoringUtil.showErrorHint(project, editor, message, title, helpId);
|
CommonRefactoringUtil.showErrorHint(project, editor, message, title, helpId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user