Skip to content

Commit bd1e953

Browse files
Configuration value encryption CLI commands: unconditionally print stack traces
1 parent 9dc8994 commit bd1e953

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/decode_command.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.DecodeCommand do
8686
{:ok, result}
8787
catch
8888
_, _ ->
89+
IO.inspect(__STACKTRACE__)
8990
{:error,
9091
"Failed to decrypt the value. Things to check: is the passphrase correct? Are the cipher and hash algorithms the same as those used for encryption?"}
9192
end
@@ -109,6 +110,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.DecodeCommand do
109110
{:ok, result}
110111
catch
111112
_, _ ->
113+
IO.inspect(__STACKTRACE__)
112114
{:error,
113115
"Failed to decrypt the value. Things to check: is the passphrase correct? Are the cipher and hash algorithms the same as those used for encryption?"}
114116
end

deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/encode_command.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncodeCommand do
7777
{:ok, result}
7878
catch
7979
_, _ ->
80+
IO.inspect(__STACKTRACE__)
8081
{:error, "Error during cipher operation"}
8182
end
8283
end
@@ -99,6 +100,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncodeCommand do
99100
{:ok, result}
100101
catch
101102
_, _ ->
103+
IO.inspect(__STACKTRACE__)
102104
{:error, "Error during cipher operation"}
103105
end
104106
end
@@ -115,6 +117,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncodeCommand do
115117
{:ok, result}
116118
catch
117119
_, _ ->
120+
IO.inspect(__STACKTRACE__)
118121
{:error, "Error during cipher operation"}
119122
end
120123
end

deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/encrypt_conf_value_command.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncryptConfValueCommand do
9797
{:ok, result}
9898
catch
9999
_, _ ->
100+
IO.inspect(__STACKTRACE__)
100101
{:error, "Error during cipher operation"}
101102
end
102103
end
@@ -112,6 +113,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncryptConfValueCommand do
112113
{:ok, result}
113114
catch
114115
_, _ ->
116+
IO.inspect(__STACKTRACE__)
115117
{:error, "Error during cipher operation"}
116118
end
117119
end

0 commit comments

Comments
 (0)