mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 02:39:55 +01:00
Render better crash stack traces for executors.
This commit is contained in:
@@ -7,9 +7,9 @@ import androidx.annotation.NonNull;
|
||||
import net.zetetic.database.DatabaseErrorHandler;
|
||||
import net.zetetic.database.sqlcipher.SQLiteDatabase;
|
||||
|
||||
import org.signal.core.util.ExceptionUtil;
|
||||
import org.signal.core.util.logging.Log;
|
||||
import org.thoughtcrime.securesms.util.CursorUtil;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
/**
|
||||
* The default error handler wipes the file. This one instead prints some diagnostics and then crashes so the original corrupt file isn't lost.
|
||||
@@ -45,7 +45,7 @@ public final class SqlCipherErrorHandler implements DatabaseErrorHandler {
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
output.append("Failed to do integrity_check!").append("\n")
|
||||
.append(Util.convertThrowableToString(t));
|
||||
.append(ExceptionUtil.convertThrowableToString(t));
|
||||
}
|
||||
|
||||
output.append("\n").append("===== PRAGMA cipher_integrity_check =====").append("\n");
|
||||
@@ -56,7 +56,7 @@ public final class SqlCipherErrorHandler implements DatabaseErrorHandler {
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
output.append("Failed to do cipher_integrity_check!").append("\n")
|
||||
.append(Util.convertThrowableToString(t));
|
||||
.append(ExceptionUtil.convertThrowableToString(t));
|
||||
}
|
||||
|
||||
Log.e(TAG, output.toString());
|
||||
|
||||
Reference in New Issue
Block a user