mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Throwable wrapper
This commit is contained in:
@@ -2139,7 +2139,7 @@ public class Helper {
|
||||
try {
|
||||
return view.getContext().getResources().getResourceEntryName(id);
|
||||
} catch (Throwable ex) {
|
||||
return ex.toString();
|
||||
return new ThrowableWrapper(ex).toSafeString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2733,6 +2733,7 @@ public class Helper {
|
||||
}
|
||||
|
||||
static void writeText(File file, String content) throws IOException {
|
||||
// TODO CASA
|
||||
try (FileOutputStream out = new FileOutputStream(file)) {
|
||||
Log.write(out, content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user