From 97b2a20c8c2b5794c5b3773abe47f41264e88745 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 5 Oct 2023 18:37:49 +0200 Subject: Pgp log on error --- src/plugins/Matrix.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/Matrix.cpp') diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 13c6f4f..42a2c21 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -62,6 +62,7 @@ namespace QuickMedia { const char *args[] = { "gpg", "-d", nullptr }; const std::string_view pgp_message(message.data() + pgp_begin_index, (pgp_end_index + 25) - pgp_begin_index); if(exec_program_write_stdin(args, pgp_message.data(), pgp_message.size(), accumulate_string, &decrypted_string) != 0) { + fprintf(stderr, "failed pgp message: |%.*s|\n", (int)pgp_message.size(), pgp_message.data()); result = "🔒 Failed to decrypt message:\n" + std::move(message); } else { decrypted_string.insert(0, "🔒 ", strlen("🔒 ")); -- cgit v1.2.3