mattt/venice — pull request #9 by krzyzak (2013-05-08 11:53:22+00:00)
Title: Improved error handling

Hi,
I’ve seen that recently there was some changes in error handling, however, current apporach isn’t working properly:

With your code:
```
Venice::Receipt.verify!(Rails.root.join("spec","receipt").read)
RuntimeError: This receipt is a sandbox receipt, but it was sent to the production service for verification.
from /Users/krzyzak/projects/venice/lib/venice/client.rb:60:in `verify!'
from /Users/krzyzak/projects/venice/lib/venice/receipt.rb:92:in `verify!'
```
With my code:
```
Venice::Receipt.verify!(Rails.root.join("spec","receipt").read)

#
```

There are some failing tests (but originally were) – I don’t have time now to fix them, but I’m sure that I’ll try to fix them within few days ;)