mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
move potentially long information from exception message to an attachment
This commit is contained in:
+4
-2
@@ -17,6 +17,7 @@
|
||||
package com.intellij.codeInsight.editorActions.moveUpDown;
|
||||
|
||||
import com.intellij.codeInsight.folding.CodeFoldingManager;
|
||||
import com.intellij.openapi.diagnostic.Attachment;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.*;
|
||||
import com.intellij.openapi.editor.ex.util.EditorUtil;
|
||||
@@ -67,8 +68,9 @@ class MoverWrapper {
|
||||
TextRange range = new TextRange(start, end);
|
||||
TextRange range2 = new TextRange(start2, end2);
|
||||
if (range.intersectsStrict(range2) && !range.equals(range2)) {
|
||||
LOGGER.error("Wrong move ranges: " +
|
||||
start + ":" + end + "(" + textToInsert + "), " + start2 + ":" + end2 + "(" + textToInsert2 + "), mover: " + myMover);
|
||||
LOGGER.error("Wrong move ranges requested by " + myMover,
|
||||
new Attachment("ranges.txt",
|
||||
start + ":" + end + "(" + textToInsert + ")\n" + start2 + ":" + end2 + "(" + textToInsert2 + ")"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user