mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 01:02:14 +08:00
shouldLogException: Handle all exception types
Fixes APP-SB
This commit is contained in:
@ -284,8 +284,11 @@ const ignoredMessages = [
|
||||
"failed getting response",
|
||||
];
|
||||
|
||||
bool shouldLogGitException(GitException ex) {
|
||||
var msg = ex.cause.toLowerCase();
|
||||
bool shouldLogGitException(Exception ex) {
|
||||
if (ex is! GitException) {
|
||||
return false;
|
||||
}
|
||||
var msg = (ex as GitException).cause.toLowerCase();
|
||||
for (var i = 0; i < ignoredMessages.length; i++) {
|
||||
if (msg.contains(ignoredMessages[i])) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user