thejsj / rethinkdb-init

Create all RethinkDB databases, tables and indexes automatically through a schema object.
https://www.npmjs.com/package/rethinkdb-init
53 stars 15 forks source link

Compatibility with `rethinkdbdash` #9

Closed marshall007 closed 8 years ago

marshall007 commented 8 years ago

I think the only thing that would be required to make this compatible with the unofficial rethinkdbdash driver is on this line: /index.js#L25. Errors generated from rethinkdbdash have a message property instead of msg.

@thejsj would you accept a PR that changes this line to (err.msg || err.message).indexOf(...)?

thejsj commented 8 years ago

Absolutely. Go for it!

sagivf commented 8 years ago

:+1: