Skip to content

Commit

Permalink
Fix error handling (#18)
Browse files Browse the repository at this point in the history
* fix-error-handling

* changeset
  • Loading branch information
andrewblaney authored Jan 20, 2025
1 parent c7ba958 commit ebe38b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-peaches-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@team-plain/cli": patch
---

Fix error handling
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function indexUrl(url, labelTypeIds = []) {
url,
labelTypeIds,
});
if (res.isErr) {
if (res.error) {
handleError(res.error.message, res.error.requestId);
} else {
console.log(`✅ Successfully indexed ${url}`);
Expand Down

0 comments on commit ebe38b7

Please sign in to comment.