diff --git a/bluebird.md b/bluebird.md index 568805a08..923a9d664 100644 --- a/bluebird.md +++ b/bluebird.md @@ -40,10 +40,14 @@ Promise.props({ ### Chain of promises ```js -Promise.try(function () { - if (err) throw new Error("boo"); - return result; -}); +function getPhotos() { + return Promise.try(function () { + if (err) throw new Error("boo"); + return result; + }); +} + +getPhotos().then(...) ``` ### Working with node-style functions