Skip to content

Commit

Permalink
Improved stacktraces [#94 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Nov 25, 2009
1 parent 4fbb012 commit 8815a8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lucene/index.rb
Expand Up @@ -188,7 +188,7 @@ def commit
rescue => ex
$LUCENE_LOGGER.error(ex)
# ex.backtrace.each{|x| $LUCENE_LOGGER.error(x)}
raise ex
raise
end


Expand Down
2 changes: 1 addition & 1 deletion lib/lucene/transaction.rb
Expand Up @@ -97,7 +97,7 @@ def run
# TODO reuse of error handling and logging
$LUCENE_LOGGER.error{"Got exception #{ex}"}
ex.backtrace.each {|t| $LUCENE_LOGGER.error(t)}
raise ex
raise
ensure
tx.commit unless tx.rollback?
end
Expand Down
2 changes: 1 addition & 1 deletion lib/neo4j/transaction.rb
Expand Up @@ -106,7 +106,7 @@ def run # :yield: block of code to run inside a transaction
rescue Exception => e
#$NEO_LOGGER.warn{e.backtrace.join("\n")}
tx.failure
raise e
raise
ensure
tx.finish
end
Expand Down

0 comments on commit 8815a8a

Please sign in to comment.