Skip to content

Commit 37e90ec

Browse files
committed
Fixed frozen string issue in StatusException.message. Resolves GH-1
1 parent f349483 commit 37e90ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/sftp/errors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def initialize(response, text=nil)
3030
# Override the default message format, to include the code and
3131
# description.
3232
def message
33-
m = super
33+
m = super.dup
3434
m << " #{text}" if text
3535
m << " (#{code}, #{description.inspect})"
3636
end

0 commit comments

Comments
 (0)