mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
revert "less stderr on test failures" until we are on jdk 1.7
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.testFramework;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -45,10 +44,15 @@ public class LoggedErrorProcessor {
|
||||
public void processError(String message, Throwable t, String[] details, @NotNull Logger logger) {
|
||||
logger.info(message, t);
|
||||
|
||||
System.err.println("ERROR: " + message);
|
||||
if (t != null) t.printStackTrace(System.err);
|
||||
if (details != null && details.length > 0) {
|
||||
message += "\n Details:" + StringUtil.join(details, "\n ");
|
||||
System.out.println("details: ");
|
||||
for (String detail : details) {
|
||||
System.out.println(detail);
|
||||
}
|
||||
}
|
||||
|
||||
throw new RuntimeException(message, t);
|
||||
throw new AssertionError(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user