Skip to content

Commit

Permalink
Configuration value encryption CLI commands: unconditionally print st…
Browse files Browse the repository at this point in the history
…ack traces

(cherry picked from commit bd1e953)
  • Loading branch information
michaelklishin authored and mergify[bot] committed Aug 13, 2024
1 parent b5c9064 commit 75d6f50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.DecodeCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error,
"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?"}
end
Expand All @@ -109,6 +110,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.DecodeCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error,
"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?"}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncodeCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error, "Error during cipher operation"}
end
end
Expand All @@ -99,6 +100,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncodeCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error, "Error during cipher operation"}
end
end
Expand All @@ -115,6 +117,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncodeCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error, "Error during cipher operation"}
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncryptConfValueCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error, "Error during cipher operation"}
end
end
Expand All @@ -112,6 +113,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EncryptConfValueCommand do
{:ok, result}
catch
_, _ ->
IO.inspect(__STACKTRACE__)
{:error, "Error during cipher operation"}
end
end
Expand Down

0 comments on commit 75d6f50

Please sign in to comment.