More infos on exception (which database was trying to open)

master
Denis Knauf 2010-04-14 11:31:15 +02:00
parent 26cf9ec0f8
commit 9ff255efcd
1 changed files with 1 additions and 1 deletions

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