Skip to content

Commit 3646661

Browse files
Improve esbuild no-output error messaging
Agent-Logs-Url: https://github.com/github/accessibility-scanner/sessions/874fd265-9e9f-4ac4-930d-8d26cb424035 Co-authored-by: abdulahmad307 <204748719+abdulahmad307@users.noreply.github.com>
1 parent f25c32b commit 3646661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/find/src/pluginManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async function loadPluginModule(pluginEntryPath: string) {
155155

156156
const outputFileContents = esbuildResult.outputFiles[0]?.text
157157
if (!outputFileContents) {
158-
throw new Error(`failed to compile plugin: ${pluginEntryPath}`)
158+
throw new Error(`esbuild produced no output for plugin: ${pluginEntryPath}`)
159159
}
160160

161161
const base64CompiledPlugin = Buffer.from(outputFileContents).toString('base64')

0 commit comments

Comments
 (0)