Permalink
Browse files

Fix fail callback example documentation in Making Requests section of…

… guide
  • Loading branch information...
1 parent 892acc5 commit 2ef7ee962328f27e1c5022838b21015ab4f98efb @lsegal lsegal committed Dec 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc-src/guide/MakingRequests.md
@@ -98,14 +98,14 @@ the error data:
```js
s3.config.credentials.accessKeyId = 'invalid';
s3.client.listBuckets().fail(function(response) {
- console.log(response.error)
+ console.log(response.error);
});
```
Prints:
```js
-{ code: 403, message: 'Forbidden' }
+{ code: 'Forbidden', message: 403 }
```
#### `data(function(response) { ... })`

0 comments on commit 2ef7ee9

Please sign in to comment.