Revert "Make task handler's error msg CLI friendly (needs review)"

This reverts commit cfe22c3cec.

This will be Too verbose in UI.
This commit is contained in:
ghubstan 2020-10-02 14:51:43 -03:00
parent e09b821222
commit 628c557a98
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -20,8 +20,6 @@ package bisq.common.taskrunner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static java.lang.String.format;
public abstract class Task<T extends Model> {
private static final Logger log = LoggerFactory.getLogger(Task.class);
@ -29,7 +27,7 @@ public abstract class Task<T extends Model> {
private final TaskRunner taskHandler;
protected final T model;
protected String errorMessage = "An error occurred at task " + getClass().getSimpleName();
protected String errorMessage = "An error occurred at task: " + getClass().getSimpleName();
protected boolean completed;
public Task(TaskRunner taskHandler, T model) {
@ -67,7 +65,7 @@ public abstract class Task<T extends Model> {
protected void failed(Throwable t) {
log.error(errorMessage, t);
taskHandler.handleErrorMessage(format("%s: %s", errorMessage, t.getMessage()));
taskHandler.handleErrorMessage(errorMessage);
}
protected void failed() {