Refactored getExceptionMessage
This commit is contained in:
parent
36c53f2bc9
commit
15cdc022b7
@ -98,12 +98,7 @@ class ParallelProcessor<T extends Runnable> {
|
|||||||
logger.error("Error during execution of work!", t.getMessage());
|
logger.error("Error during execution of work!", t.getMessage());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
String message = t.getMessage();
|
System.err.println("Error during execution of work! " + OS.getExceptionMessage(t));
|
||||||
int index = message.indexOf(OS.LINE_SEPARATOR);
|
|
||||||
if (index > -1) {
|
|
||||||
message = message.substring(0, index);
|
|
||||||
}
|
|
||||||
System.err.println("Error during execution of work! " + message);
|
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (taken instanceof Runnable) {
|
if (taken instanceof Runnable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user