Skip to content

Commit

Permalink
Expose query handling errors via Postgres protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Dec 5, 2024
1 parent f7107b0 commit 2ad3b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (postgres *Postgres) handleSimpleQuery(queryHandler *QueryHandler, queryMes
LogDebug(postgres.config, "Received query:", queryMessage.String)
messages, err := queryHandler.HandleQuery(queryMessage.String)
if err != nil {
postgres.writeError("Internal error")
postgres.writeError(err.Error())
return
}
messages = append(messages, &pgproto3.ReadyForQuery{TxStatus: PG_TX_STATUS_IDLE})
Expand Down

0 comments on commit 2ad3b34

Please sign in to comment.