diff --git a/packages/app/src/cli/services/build/extension.ts b/packages/app/src/cli/services/build/extension.ts index 2b0258b92e..a6aa0920f4 100644 --- a/packages/app/src/cli/services/build/extension.ts +++ b/packages/app/src/cli/services/build/extension.ts @@ -186,6 +186,9 @@ export async function buildFunctionExtension( await touchFile(bundlePath) await writeFile(bundlePath, base64Contents) } + } catch (error) { + const errorMessage = (error as Error).message ?? 'Unknown error occurred' + throw new AbortError('Failed to build function.', errorMessage) } finally { await releaseLock() }