Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Oct 16, 2023
1 parent 83d2f35 commit c2900f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You can throw expected errors using `TaskError`, this errors are rethrow on the
const myTask = createTask("/api/my-task").withAction(() => {
const randomNumber = Math.random();
if (randomNumber > 0.5) {
throw new TaskError("Uh uh, invalid number");
throw new TaskError("Invalid number");
}

return { randomNumber };
Expand Down
2 changes: 1 addition & 1 deletion package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You can throw expected errors using `TaskError`, this errors are rethrow on the
const myTask = createTask("/api/my-task").withAction(() => {
const randomNumber = Math.random();
if (randomNumber > 0.5) {
throw new TaskError("Uh uh, invalid number");
throw new TaskError("Invalid number");
}

return { randomNumber };
Expand Down

0 comments on commit c2900f7

Please sign in to comment.