Skip to content

Commit

Permalink
no information leak in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Oct 3, 2013
1 parent 03df5dc commit 94d85d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ixtlan/optimistic/stale_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __check_stale( updated_at, result )
updated_at = updated_at.new_offset(0)
if updated_at != result.updated_at && updated_at.strftime("%Y:%m:%d %H:%M:%S") != result.updated_at.strftime("%Y:%m:%d %H:%M:%S")

raise ObjectStaleException.new "#{result.inspect} is newer than the given updated at #{updated_at}."
raise ObjectStaleException.new "#{result.model} with key [#{result.id}] was updated at #{result.updated_at} is newer than the given one which was updated at #{updated_at}."
end
result
end
Expand Down

0 comments on commit 94d85d9

Please sign in to comment.