Fix error emitter for search
Merge pull request #52 from stephen/fix-error-emitter

Fix error emitter for search