More infos on exception (which database was trying to open)
This commit is contained in:
parent
26cf9ec0f8
commit
9ff255efcd
|
@ -84,7 +84,7 @@ module SBDB
|
||||||
@db.open txn && txn.bdb_object, file, opts[:name], opts[:type], opts[:flags] || 0, opts[:mode] || 0
|
@db.open txn && txn.bdb_object, file, opts[:name], opts[:type], opts[:flags] || 0, opts[:mode] || 0
|
||||||
rescue Exception => exc
|
rescue Exception => exc
|
||||||
close
|
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
|
raise exc
|
||||||
rescue
|
rescue
|
||||||
close
|
close
|
||||||
|
|
Loading…
Reference in a new issue