Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Sep 19, 2021
1 parent 8275c15 commit 1da569c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ function addArgument(
message: "Server error",
id: obj.id,
data: publicErrorStack
? new Error(
"By-position ordered parameters are not allowed for this method.",
).stack
? new Error("The method requires named parameters.").stack
: undefined,
isError: true,
};
Expand Down

0 comments on commit 1da569c

Please sign in to comment.