From dd6d728bd659c9f2ac5ba816a06291ddf2ce9d5b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 6 Apr 2024 11:44:53 -0400 Subject: [PATCH] Update --- src/command.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/command.ts b/src/command.ts index d9903e1..a01ba34 100644 --- a/src/command.ts +++ b/src/command.ts @@ -1279,6 +1279,9 @@ function templateInner( if (exprs.length > i) { try { const expr = exprs[i]; + if (expr == null) { + throw "Expression was null or undefined."; + } const inputOrOutputRedirect = detectInputOrOutputRedirect(text); if (inputOrOutputRedirect === "<") { if (expr instanceof Path) {