diff --git a/jsonrpc.go b/jsonrpc.go
index <HASH>..<HASH> 100644
--- a/jsonrpc.go
+++ b/jsonrpc.go
@@ -8,6 +8,7 @@ import (
 	"errors"
 	"fmt"
 	"net/http"
+	"strconv"
 	"sync"
 )
 
@@ -58,6 +59,10 @@ type RPCError struct {
 	Data    interface{} `json:"data"`
 }
 
+func (e *RPCError) Error() string {
+	return strconv.Itoa(e.Code) + ": " + e.Message
+}
+
 // RPCClient sends jsonrpc requests over http to the provided rpc backend.
 // RPCClient is created using the factory function NewRPCClient().
 type RPCClient struct {
implemented Error interface on RPCError (#8)

implemented Error interface on RPCError