Skip to content

Commit a0fd9ba

Browse files
committed
Merge pull request #189 from townsen/fix_exceptions
Simplify SSHKit::Runner::ExecuteError
2 parents 1b2b2db + f04d2c6 commit a0fd9ba

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ appear at the top.
1313
were ignored.
1414
* Fixed race condition where output of failed command would be empty. @townsen
1515
Caused random failures of `test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr`
16+
* Remove override of backtrace() and backtrace_locations() from ExecuteError. @townsen
17+
This interferes with rake default behaviour and creates duplicate stacktraces.
1618

1719
## 1.6.0
1820

lib/sshkit/exception.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ class ExecuteError < StandardError
88
def initialize cause
99
@cause = cause
1010
end
11-
12-
def backtrace
13-
@cause.backtrace
14-
end
15-
16-
def backtrace_locations
17-
@cause.backtrace_locations
18-
end
1911
end
2012
end
2113
end

0 commit comments

Comments
 (0)