emit error exception
Merge pull request #2 from blairanderson/master

emit error exception