mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +01:00
Only print stack trace if dev mode
This commit is contained in:
parent
d7f1b00221
commit
02d7dfdaef
1 changed files with 3 additions and 3 deletions
|
@ -120,13 +120,13 @@ public class Res {
|
|||
.replace("bitcoin", baseCurrencyNameLowerCase);
|
||||
} catch (MissingResourceException e) {
|
||||
log.warn("Missing resource for key: {}", key);
|
||||
e.printStackTrace();
|
||||
if (DevEnv.isDevMode())
|
||||
if (DevEnv.isDevMode()) {
|
||||
e.printStackTrace();
|
||||
UserThread.runAfter(() -> {
|
||||
// We delay a bit to not throw while UI is not ready
|
||||
throw new RuntimeException("Missing resource for key: " + key);
|
||||
}, 1);
|
||||
|
||||
}
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue