mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Gui: Update colors dynamically when changed from options screen
This commit is contained in:
@@ -54,7 +54,7 @@ public class Err_ {
|
||||
public static String Message_gplx_full(Exception e) {return Cast_or_make(e).To_str__full();}
|
||||
public static String Message_gplx_log(Exception e) {return Cast_or_make(e).To_str__log();}
|
||||
public static String Message_lang(Throwable e) {
|
||||
return (e.getClass() == Error.class)
|
||||
return Error.class.isAssignableFrom(e.getClass())
|
||||
? e.toString() // error has null for "getMessage()" return "toString()" instead
|
||||
: e.getMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user