Fix a code error in example

Should be `err.Error()` rather than `err.String()` which is not existed
Merge pull request #8 from bachue/patch-1

Fix a code error in example