better logs
This commit is contained in:
parent
1d3daf9ce0
commit
07cfed1282
1 changed files with 5 additions and 1 deletions
|
|
@ -36,7 +36,10 @@ const onAcceptedRequests = (user, SEA) => {
|
||||||
.once(async (storedReq, id) => {
|
.once(async (storedReq, id) => {
|
||||||
try {
|
try {
|
||||||
if (!Schema.isStoredRequest(storedReq)) {
|
if (!Schema.isStoredRequest(storedReq)) {
|
||||||
throw new TypeError('Stored request not an StoredRequest')
|
throw new TypeError(
|
||||||
|
'Stored request not an StoredRequest, instead got: ' +
|
||||||
|
JSON.stringify(storedReq)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
const recipientPub = await SEA.decrypt(storedReq.recipientPub, mySecret)
|
const recipientPub = await SEA.decrypt(storedReq.recipientPub, mySecret)
|
||||||
|
|
||||||
|
|
@ -156,6 +159,7 @@ const onAcceptedRequests = (user, SEA) => {
|
||||||
)
|
)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn(`Jobs.onAcceptedRequests() -> ${err.message}`)
|
console.warn(`Jobs.onAcceptedRequests() -> ${err.message}`)
|
||||||
|
console.log(err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue