Permalink
Browse files

Correctly wrap errors when rolling back transactions on Swift

  • Loading branch information...
1 parent e9882ef commit c5eed4023ab8139b4393308ff8a9ee10d3523592 @jeremyevans committed Oct 22, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/sequel/adapters/swift.rb
@@ -113,7 +113,11 @@ def connection_execute_method
# Execute SQL on the connection
def log_connection_execute(conn, sql)
- log_yield(sql){conn.execute(sql)}
+ begin
+ log_yield(sql){conn.execute(sql)}
+ rescue ::Swift::Error => e
+ raise_error(e)
+ end
end
# Set the :db entry to the same as the :database entry, since

0 comments on commit c5eed40

Please sign in to comment.