Forgotten change needed for better xml error display
[redakcja.git] / redakcja / static / js / wiki / view_editor_wysiwyg.js
index 1986984..ad48a21 100644 (file)
                 _finalize(success);
             },
             error: function(text){
-                /* only basic error message */
-                var errorArray = text.split("\n");
-                if (errorArray.length >= 3) {
-                    text = errorArray[2].split(":")[0];
-                }
-                $('#html-view').html('<p class="error">Wystąpił błąd: '+ text + '</p>');
+                $('#html-view').html('<p class="error">Wystąpił błąd:</p><pre>'+text+'</pre>');
                 _finalize(failure);
             }
         });