Skip to content

Commit

Permalink
Merge pull request #18 from icapps/feature/replace-i18n-with-icapps-t…
Browse files Browse the repository at this point in the history
…ranslator

feature/replace-i18n-with-icapps-translator
  • Loading branch information
horstenwillem committed Jun 19, 2019
2 parents ff83868 + fab090a commit dcd9bf3
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 143 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Custom NodeJS error classes and definitions with an error parser utility functio
Install via npm

```shell
npm install tree-house-errors
npm install @icapps/tree-house-errors
```

or via yarn

```shell
yarn add tree-house-errors
yarn add @icapps/tree-house-errors
```

## Error types
Expand Down Expand Up @@ -125,7 +125,7 @@ RESOURCE_NOT_FOUND: { code: 'RESOURCE_NOT_FOUND', i18n: 'resource_not_found'
Example

```javascript
import { errorConfig as errors } from 'tree-house-errors'
import { errorConfig as errors } from '@icapps/tree-house-errors'
throw new ApiError(400, errors.BAD_REQUEST);
```

Expand Down
Loading

0 comments on commit dcd9bf3

Please sign in to comment.