iopipe / serverless-plugin-iopipe

Automatically wrap your serverless framework functions with IOpipe
https://www.iopipe.com
Apache License 2.0
40 stars 8 forks source link

syntax errors in handler obscured - reports as iopipe-handler error #23

Closed ewindisch closed 7 years ago

ewindisch commented 7 years ago

if my own handler has a syntax error I get:

Syntax error in module 'iopipe-handlers': SyntaxError
SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/task/iopipe-handlers.js:3:27)

The error in my own code is not logged.