diff --git a/packages/link-apps/src/cli.ts b/packages/link-apps/src/cli.ts index 08e96b6..6544059 100644 --- a/packages/link-apps/src/cli.ts +++ b/packages/link-apps/src/cli.ts @@ -42,7 +42,7 @@ export function processCLIArguments(args: string[]): CLI { throw new Error("No command could be determined"); } catch (err) { - throw new Error(`Some flags could not be handled: ${err?.message ?? String(err)}`, { + throw new Error(`Some flags could not be handled: ${(err as unknown as (Error | undefined))?.message ?? String(err)}`, { cause: err, }); }