Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/ruby_snowflake_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ module Snowflake
LOG_LEVEL = 0

class Error < StandardError
attr_reader :details
# This will get pulled through to Sentry, see:
# https://github.com/getsentry/sentry-ruby/blob/11ecd254c0d2cae2b327f0348074e849095aa32d/sentry-ruby/lib/sentry/error_event.rb#L31-L33
attr_reader :sentry_context

def initialize(details)
@details = details
@sentry_context = details
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_snowflake_client/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RubySnowflakeClient
VERSION = '1.1.0'
VERSION = '1.1.1'
end
2 changes: 1 addition & 1 deletion spec/snowflake/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
it "should raise an exception" do
expect { result }.to raise_error do |error|
expect(error).to be_a Snowflake::Error
expect(error.details).to include(
expect(error.sentry_context).to include(
sql: query
)
end
Expand Down