Skip to content

Commit

Permalink
transaction error "code" field is a string instead of an int
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcvetta committed Nov 29, 2013
1 parent 93df183 commit a2e5210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var TxQueryError = errors.New("Error with a query inside a transaction.")
// A TxError is an error with one of the statements submitted in a transaction,
// but not with the transaction itself.
type TxError struct {
Code int
Code string
Status string
Message string
}
Expand Down Expand Up @@ -95,7 +95,7 @@ func (db *Database) Begin(qs []*CypherQuery) (*Tx, error) {
t := Tx{
db: db,
hrefCommit: result.Commit,
Location: resp.HttpResponse().Header.Get("location"),
Location: resp.HttpResponse().Header.Get("Location"),
Errors: result.Errors,
Expires: result.Transaction.Expires,
}
Expand Down

0 comments on commit a2e5210

Please sign in to comment.