catching potential error and emitting out a 'error' event
adding in some more catches and adding back some]
early returning errors first
compiling changes in build files"
Merge pull request #11 from honeinc/errorcatching

Catching some more errors.