Skip to content

Commit 4458044

Browse files
committed
1.3.1
- fixed issue where error was used instead of the message on getPendingInvitations - updated devDeps
1 parent 3173776 commit 4458044

File tree

4 files changed

+1741
-624
lines changed

4 files changed

+1741
-624
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ More important methods are `getItems(listUUID)`, `getItemsDetails(listUUID)`, `s
4141
`moveToRecentList(listUuid, itemName)` and `getAllUsersFromList(listUuid)`.
4242

4343
## Changelog
44+
### 1.3.1 (2021-04-29)
45+
* (foxriver76) fixed issue where error was used instead of the mssage on `getPendingInvitations`
46+
4447
### 1.3.0 (2020-10-05)
4548
* (mdhom) added getItemsDetails method
4649
* (foxriver76) now reject with real errors instead of strings

lib/bring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class Bring {
205205
const data = await request(`${this.url}bringusers/${this.uuid}/invitations?status=pending`, {headers: this.headers});
206206
return JSON.parse(data);
207207
} catch (e) {
208-
throw new Error(`Cannot get pending invitations: ${e}`);
208+
throw new Error(`Cannot get pending invitations: ${e.message}`);
209209
} // endCatch
210210
} // endGetPendingInvitations
211211

0 commit comments

Comments
 (0)