Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
fix(errors): expose errors in requelize (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjuchault authored Mar 22, 2017
1 parent 557dcc8 commit c44bbe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/requelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const debug = require('debug')('requelize:init')
const r = require('rethinkdbdash')
const model = require('./model')
const ready = require('./ready')
const RequelizeError = require('./error')

/**
* Create a requelize instance
Expand All @@ -20,7 +21,8 @@ module.exports = (opts_) => {
model,
ready,
opts,
models: []
models: [],
RequelizeError: RequelizeError
}

requelize.model = requelize.model(requelize)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "requelize",
"version": "0.6.1",
"version": "0.6.2",
"description": "RethinkDB ORM",
"main": "index.js",
"repository": "https://github.com/buckless/requelize.git",
Expand Down

0 comments on commit c44bbe6

Please sign in to comment.