Skip to content

Commit 2b23fbd

Browse files
committed
Merge pull request #265 from encryptio/master
errors.go: fix infinite recursion in rqlError.Error()
2 parents 23860fe + ec6f9ff commit 2b23fbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Setting up a basic connection with RethinkDB is simple:
3434
```go
3535
import (
3636
r "github.com/dancannon/gorethink"
37+
"log"
3738
)
3839

3940
var session *r.Session

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (e rqlServerError) String() string {
9797
type rqlError string
9898

9999
func (e rqlError) Error() string {
100-
return fmt.Sprintf("gorethink: %s", e)
100+
return fmt.Sprintf("gorethink: %s", string(e))
101101
}
102102

103103
func (e rqlError) String() string {

0 commit comments

Comments
 (0)