This commit is contained in:
Denis Knauf 2010-04-14 11:33:49 +02:00
parent 9ff255efcd
commit 55c7c8637b

View file

@ -84,7 +84,7 @@ module SBDB
@db.open txn && txn.bdb_object, file, opts[:name], opts[:type], opts[:flags] || 0, opts[:mode] || 0
rescue Exception => exc
close
exc.backtrace.unshift "Trying to open #{open[:env] && "in #{open[:env].home} "}database #{file} #{opts[:name]}"
exc.backtrace.unshift "Trying to open #{open[:env] && "in #{open[:env]].home} "}database #{file} #{opts[:name]}"
raise exc
rescue
close