summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <thelunaticscripter@outlook.com>2017-06-07 22:00:30 -0500
committerThom May <thom@chef.io>2018-03-22 11:10:49 +0000
commitfd5892d508845cb5388b87fd2e975f594aaa7d45 (patch)
tree13379a214f384274f5255ee808373fc3de422a90
parent2871753e372d9dab4fa58d8989e6a7a4f3dfc05f (diff)
downloadchef-fd5892d508845cb5388b87fd2e975f594aaa7d45.tar.gz
Fix incorrectly written unless statement
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
-rw-r--r--lib/chef/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index 0d221ec878..974b80423c 100644
--- a/lib/chef/application.rb
+++ b/lib/chef/application.rb
@@ -360,7 +360,7 @@ class Chef
def debug_stacktrace(e)
message = "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"
- unless (e.message =~ /suppressed for sensitive resource/)
+ unless e.message =~ /suppressed for sensitive resource/
cause = e.cause if e.respond_to?(:cause)
until cause.nil?
message << "\n\n>>>> Caused by #{cause.class}: #{cause}\n#{cause.backtrace.join("\n")}"