aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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("🔒 "));