Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
docs: add Promise#catch
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Aug 26, 2017
1 parent 651bb58 commit 41bd624
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ var db = levelup(leveldown('./my-db'))
db.put('foo', 'bar')
.then(function () { return db.get('foo') })
.then(function (value) { console.log(value) })
.catch(function (err) { console.error(err) })
```

Or using `async/await`:
Expand Down

0 comments on commit 41bd624

Please sign in to comment.