Skip to content

Commit

Permalink
Merge pull request ryanmcdermott#29 from jordalgo/patch-1
Browse files Browse the repository at this point in the history
Update: promise catch logic
  • Loading branch information
ryanmcdermott authored Jan 6, 2017
2 parents 55e612d + e904445 commit 52a9251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1747,7 +1747,7 @@ require('request-promise').get('https://en.wikipedia.org/wiki/Robert_Cecil_Marti
console.log('File written');
})
.catch(function(err) {
console.log(err);
console.error(err);
})

```
@@ -1770,7 +1770,7 @@ require('request-promise').get('https://en.wikipedia.org/wiki/Robert_Cecil_Marti
console.log('File written');
})
.catch(function(err) {
console.log(err);
console.error(err);
})

```

0 comments on commit 52a9251

Please sign in to comment.