Use XGetErrorText() instead of our own table

This fixes segfaults when the error code is not in the table
Merge pull request #23 from Ceropean/master

Use XGetErrorText() instead of our own table