GitUIUtil change \n by <br> when displaying exception message
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Wed, 13 Apr 2011 16:16:21 +0000 (20:16 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Thu, 14 Apr 2011 06:52:03 +0000 (10:52 +0400)
plugins/git4idea/src/git4idea/ui/GitUIUtil.java

index 52a7ad51784792066571ebe5f532da2d72dfbb47..6f6c19331a20723af591cef3470db5c309390acc 100644 (file)
@@ -72,7 +72,9 @@ public class GitUIUtil {
     } else {
       errorMessages = new HashSet<String>(errors.size());
       for (VcsException error : errors) {
-        errorMessages.addAll(Arrays.asList(error.getMessages()));
+        for (String message : error.getMessages()) {
+          errorMessages.add(message.replace("\n", "<br/>"));
+        }
       }
     }
     notifyMessages(project, title, description, type, important, errorMessages);