imessage-exporter
imessage-exporter copied to clipboard
Full Disk Access warning logic doesn't always work
Per this comment:
Building cache…
[1/4] Caching chats…
thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: SqliteFailure(Error { code: AuthorizationForStatementDenied, extended_code: 23 }, Some(“authorization denied”))’, /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/imessage-database-1.0.0/src/tables/chat.rs:34:54 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
This logic is supposed to emit a readable error when Full Disk Access is not available for the imessage-exporter
process:
https://github.com/ReagentX/imessage-exporter/blob/c5006a30e7d7b71e5873bef551724a3ab3ac7dac/imessage-database/src/tables/table.rs#L45-L51
However, the above error suggests we got to the first SQL query instead:
https://github.com/ReagentX/imessage-exporter/blob/c5006a30e7d7b71e5873bef551724a3ab3ac7dac/imessage-database/src/tables/chat.rs#L33-L35