Fix error message in listener
Merge pull request #2 from Lughino/master

Fix error listener