From 1da569c7724176b17ad226f4574c869864ef4e41 Mon Sep 17 00:00:00 2001 From: timonson Date: Sun, 19 Sep 2021 20:48:56 +0200 Subject: [PATCH] Improve error message --- server/creation.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/creation.ts b/server/creation.ts index f3b7d8e..ec8789b 100644 --- a/server/creation.ts +++ b/server/creation.ts @@ -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, };