aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-05 18:37:49 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-05 18:37:49 +0200
commit97b2a20c8c2b5794c5b3773abe47f41264e88745 (patch)
tree95db7377bf887657c9904aceee437197e8158d52 /src/plugins
parent9031927b15cc487693dc14f9398c7fdba54cfe07 (diff)
Pgp log on error
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp1
1 files changed, 1 insertions, 0 deletions
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("🔒 "));