Fix bug in reporting protocol errors
Merge pull request #1042 from hurtonm/master

Fix bug in reporting protocol errors