Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add message to a couple exceptions

  • Loading branch information...
commit dcbf859a67dd791db2bdaabbfd89c643a8607572 1 parent c3f7077
@pangloss pangloss authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pacer/graph/graph_transactions_mixin.rb
View
4 lib/pacer/graph/graph_transactions_mixin.rb
@@ -64,7 +64,7 @@ def start_transaction!(opts)
elsif opts[:nesting] == true
nested_tx_finalizers
else
- fail NestedTransactionError
+ fail NestedTransactionError, "To use nested transactions, use nesting: true"
end
else
if tx_depth == 0
@@ -83,7 +83,7 @@ def base_tx_finalizers
tx_id = threadlocal_graph_info[:tx_id] = rand
commit = -> do
if tx_id != threadlocal_graph_info[:tx_id]
- fail InternalError
+ fail InternalError, 'Can not commit transaction outside its original block'
end
puts "transaction committed" if Pacer.verbose == :very
blueprints_graph.stopTransaction TransactionalGraph::Conclusion::SUCCESS
Please sign in to comment.
Something went wrong with that request. Please try again.