Skip to content

Commit df26f6b

Browse files
committed
fixed readme error handling example
1 parent 67c40b4 commit df26f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ which means that to upload a file it is enough to provide either a [`FormData`](
155155

156156
All services return a standard [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)-based response, so the error handling is straightforward:
157157
```js
158-
pb.collection('example').getList(1, 50).then((result) {
158+
pb.collection('example').getList(1, 50).then((result) => {
159159
// success...
160160
console.log('Result:', result);
161-
}).catch((error) {
161+
}).catch((error) => {
162162
// error...
163163
console.log('Error:', error);
164164
});

0 commit comments

Comments
 (0)