Skip to content

Commit

Permalink
Include ConnectionError in SyscallErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Aug 23, 2023
1 parent 64efd8f commit 3bc3927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ruby/lib/trilogy/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SyscallError
.select { |c| c.is_a?(Class) && c < SystemCallError }
.each do |c|
errno_name = c.to_s.split('::').last
ERRORS[c::Errno] = const_set(errno_name, Class.new(c) { include Trilogy::Error })
ERRORS[c::Errno] = const_set(errno_name, Class.new(c) { include Trilogy::ConnectionError })
end

ERRORS.freeze
Expand Down

0 comments on commit 3bc3927

Please sign in to comment.