mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-28 09:24:15 -04:00
handle errors making or taking offers with insufficient funds
This commit is contained in:
parent
abfc0503fa
commit
dd68760f27
6 changed files with 25 additions and 6 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
package bisq.common.taskrunner;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -64,7 +66,11 @@ public abstract class Task<T extends Model> {
|
|||
}
|
||||
|
||||
protected void failed(Throwable t) {
|
||||
log.error(errorMessage, t);
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
t.printStackTrace(pw);
|
||||
errorMessage = sw.toString();
|
||||
log.error(t.getMessage(), t);
|
||||
taskHandler.handleErrorMessage(errorMessage);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue