Skip to content

Commit

Permalink
do not create vc error in reportError
Browse files Browse the repository at this point in the history
  • Loading branch information
binarykitchen committed Nov 3, 2024
1 parent 1172003 commit a23ee26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,13 @@ class Resource {
const url = `${this.options.baseUrl}/client-error/`;

try {
const request = await superagent(FormMethod.POST, url)
await superagent(FormMethod.POST, url)
.query(queryParams)
.send(err)
.timeout(this.options.timeouts.connection);

return request;
} catch (exc) {
throw createError({ exc, options: this.options });
// Can't throw it again, so just print and do nothing else further.
console.error(exc);
}
}

Expand Down

0 comments on commit a23ee26

Please sign in to comment.