Skip to content

Commit

Permalink
Fix #39; add message to invalid interaction error
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed Aug 7, 2013
1 parent 5eb8207 commit 93a8575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/active_interaction/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def self.run(options = {})
# @return The return value of {#execute}.
def self.run!(options = {})
outcome = run(options)
raise InteractionInvalid if outcome.invalid?
if outcome.invalid?
raise InteractionInvalid, outcome.errors.full_messages.join(', ')
end
outcome.result
end

Expand Down

0 comments on commit 93a8575

Please sign in to comment.