Skip to content

Commit f49cf30

Browse files
committed
fix: improve error message
1 parent 23696c8 commit f49cf30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ async function linkSrcToDescriptor(
529529
setSrcDescriptor(srcFile.replace(/\?.*$/, ''), descriptor, scoped)
530530
} else {
531531
// TODO: unplugin implements context.resolve()
532-
pluginContext.error(new Error('src attribute is supported on Rollup only.'))
532+
pluginContext.error(
533+
new Error(`src attribute is not supported in ${pluginContext.framework}`),
534+
)
533535
}
534536
}
535537

0 commit comments

Comments
 (0)