ybogdanov / node-sync

Write simple and readable synchronous code in nodejs using fibers
MIT License
492 stars 70 forks source link

throw error instead of silently ignore #53

Closed airs0urce closed 8 years ago

airs0urce commented 8 years ago

I was debugging my app and had no idea what happens, script just didn't execute some lines. Then I added console.log('step1'), console.log('step2') etc. after each line and found that script stops on certain step and don't output anything. However I added try ... catch block around. After some research I solved it with removing commented line in sync.js.

ybogdanov commented 8 years ago

Thanks, @airs0urce