Skip to content

Commit b5e757c

Browse files
committed
fix: change query failure to 500
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 0ce2070 commit b5e757c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func handleHasTx(c *gin.Context) {
199199
hasTx, err := oConn.LocalTxMonitor().Client.HasTx(cborData)
200200
if err != nil {
201201
logger.Errorf("failure getting transaction: %s", err)
202-
c.JSON(400, fmt.Sprintf("failure getting transaction: %s", err))
202+
c.JSON(500, fmt.Sprintf("failure getting transaction: %s", err))
203203
}
204204
if !hasTx {
205205
c.JSON(404, "transaction not found in mempool")

0 commit comments

Comments
 (0)