From 2efa15567f00bd17f46d880147ff1587bfb3ea35 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 15 Dec 2023 01:14:52 +0100 Subject: [PATCH] improve cli error --- cli/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/types.ts b/cli/types.ts index 4de8c760b4..c39f7688d7 100644 --- a/cli/types.ts +++ b/cli/types.ts @@ -119,7 +119,9 @@ export async function pushObj( } else if (typeEnding === "schedule") { await pushSchedule(workspace, p, befObj, newObj); } else { - throw new Error("infer type unreachable"); + throw new Error( + `The item ${p} has an unrecognized type ending ${typeEnding}` + ); } }