throw earlier to get less confusing error

This commit is contained in:
pythongosssss 2023-10-16 11:10:00 +01:00
parent efea06dda5
commit b419cd29f9

View File

@ -107,6 +107,8 @@ export class EzOutput extends EzSlot {
* @param { EzInput } input
*/
connectTo(input) {
if (!input) throw new Error("Invalid input");
/**
* @type { LG["LLink"] | null }
*/