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}`)