@vercel/node 2.5.9 → 2.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -182,7 +182,10 @@ async function compileUserCode(entrypointPath, entrypointLabel) {
182
182
  } catch (error) {
183
183
  // we can't easily show a meaningful stack trace
184
184
  // so, stick to just the error message for now
185
- event.respondWith(new Response(error.message, {
185
+ const msg = error.cause
186
+ ? (error.message + ': ' + (error.cause.message || error.cause))
187
+ : error.message;
188
+ event.respondWith(new Response(msg, {
186
189
  status: 500,
187
190
  headers: {
188
191
  'x-vercel-failed': 'edge-wrapper'