Undo debug stack trace

This commit is contained in:
Neil Alexander 2020-04-20 15:09:52 +01:00
parent db5d7f717b
commit 8e67534959

View file

@ -18,7 +18,7 @@ package postgres
import (
"context"
"database/sql"
"fmt"
"errors"
"github.com/lib/pq"
"github.com/matrix-org/dendrite/common"
@ -178,7 +178,7 @@ func (s *roomStatements) selectRoomVersionForRoomID(
stmt := common.TxStmt(txn, s.selectRoomVersionForRoomIDStmt)
err := stmt.QueryRowContext(ctx, roomID).Scan(&roomVersion)
if err == sql.ErrNoRows {
return roomVersion, fmt.Errorf("room not found")
return roomVersion, errors.New("room not found")
}
return roomVersion, err
}
@ -190,7 +190,7 @@ func (s *roomStatements) selectRoomVersionForRoomNID(
stmt := common.TxStmt(txn, s.selectRoomVersionForRoomNIDStmt)
err := stmt.QueryRowContext(ctx, roomNID).Scan(&roomVersion)
if err == sql.ErrNoRows {
return roomVersion, fmt.Errorf("room not found")
return roomVersion, errors.New("room not found")
}
return roomVersion, err
}