From c545fe1c816e45a1884db306eafb77828adb2f62 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 16 Feb 2024 12:39:55 +0100 Subject: [PATCH] fix --- lib/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 57eb954..80288c3 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -56,7 +56,7 @@ export const getDescriptor = ( case 'ArrayExpression': return property.value.elements.map((t) => { if (t === null) { - throw new Error(`Unexpected descriptor element: ${t}`) + throw new Error(`Unexpected descriptor element: null`) } if (!['StringLiteral', 'Literal'].includes(t.type)) { throw new Error(`Unexpected descriptor element: ${t.type}`)