Permalink
Browse files

display Pos name when Pos not found

  • Loading branch information...
Marcin Horosz
Marcin Horosz committed Feb 24, 2011
1 parent 28e0ac5 commit 24aa5cbb1049f3b7f41ee00d5ed5c2a19ad9df64
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/payments_pl.rb
View
@@ -75,7 +75,7 @@ def init(filename)
# @param [String, Integer] name_or_id name or pos_id of Pos
# @return [Object] the Pos object
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
# Returns Pos object with given name, the same as in payments.yml file

0 comments on commit 24aa5cb

Please sign in to comment.