Check for wrapped timeout errors properly.
This commit is contained in:
parent
2006c416d2
commit
4f6dc55683
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module ActiveRecord
|
|||
old_log(sql, name)
|
||||
end
|
||||
rescue ActiveRecord::StatementInvalid => ex
|
||||
if ex =~ /^OSM::APITimeoutError: /
|
||||
if ex.message =~ /^OSM::APITimeoutError: /
|
||||
raise OSM::APITimeoutError.new
|
||||
else
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue