Skip to content

Commit

Permalink
display Pos name when Pos not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Horosz committed Feb 24, 2011
1 parent 28e0ac5 commit 24aa5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/payments_pl.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def init(filename)
# @param [String, Integer] name_or_id name or pos_id of Pos # @param [String, Integer] name_or_id name or pos_id of Pos
# @return [Object] the Pos object # @return [Object] the Pos object
def [](name_or_id) def [](name_or_id)
get_pos_by_name(name_or_id) || get_pos_by_id(name_or_id) || raise(PosNotFound) get_pos_by_name(name_or_id) || get_pos_by_id(name_or_id) || raise(PosNotFound, name_or_id)
end end


# Returns Pos object with given name, the same as in payments.yml file # Returns Pos object with given name, the same as in payments.yml file
Expand Down

0 comments on commit 24aa5cb

Please sign in to comment.