rethinkdb/rethinkdb — pull request #436 by neumino (2013-03-11 22:33:53+00:00)
Title: Improving errors when missing arguments

For
```
r.db("test").table()
```
Instead of throwing
```
RqlDriverError: Expected 1 argument(s) but found 0.
```
We throw
```
RqlDriverError: Expected 1 argument(s) but found 0 in table.
```

Note:
- The parentheses around for `ar` and `aropt` are required or CoffeeScript 1.4 is going to complain with an "unexpected ,"
- `arguments.callee.caller` has been depreciated and doesn't work on my version of Chrome.
- new Error().stack is implemented by browsers in different ways and it would be a huge pain to parse it and find exactly what we need.