From d1d9e44d0b9637e2d147a15f1af2c609d9333704 Mon Sep 17 00:00:00 2001 From: k2tzumi Date: Fri, 8 Nov 2024 20:54:09 +0900 Subject: [PATCH] Detail error messages --- src/JobBroker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JobBroker.ts b/src/JobBroker.ts index 23e5227..ff22089 100644 --- a/src/JobBroker.ts +++ b/src/JobBroker.ts @@ -107,7 +107,7 @@ class JobBroker { const result = handler(JSON.parse(parameter.parameter)); if (!result) { - throw new Error("Abnormal job return value."); + throw new Error(`Abnormal job return value. parameter: ${parameter.parameter}, result: (${typeof result}) "${result}"`); } parameter.state = "end";