improve cli error

This commit is contained in:
Ruben Fiszel
2023-12-15 01:14:52 +01:00
parent 16f1ddd8b2
commit 2efa15567f
+3 -1
View File
@@ -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}`
);
}
}