better error logging for permission requests

pull/1490/head
ggurdin 1 year ago
parent 1e490aaea7
commit 6a7ad14d91
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -41,13 +41,8 @@ Future<void> downloadChat(
timeline,
room,
);
} catch (err) {
ErrorHandler.logError(
e: Exception(
"Failed to fetch messages for chat ${room.id} in while downloading chat",
),
s: StackTrace.current,
);
} catch (err, s) {
ErrorHandler.logError(e: err, s: s);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
@ -214,12 +209,9 @@ Future<void> downloadFile(
directory = await getExternalStorageDirectory();
}
}
} catch (err) {
} catch (err, s) {
debugPrint("Failed to get download folder path");
ErrorHandler.logError(
e: Exception("Failed to get download folder path"),
s: StackTrace.current,
);
ErrorHandler.logError(e: err, s: s);
}
if (directory != null) {
final File f = File("${directory.path}/$filename");

Loading…
Cancel
Save