mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-02 16:10:49 +02:00
fix error strings
This commit is contained in:
@ -22,7 +22,7 @@ const (
|
||||
)
|
||||
|
||||
// ErrDatabaseNotExists indicates that the database does not exist.
|
||||
var ErrDatabaseNotExists = errors.New("Database does not exists.")
|
||||
var ErrDatabaseNotExists = errors.New("database does not exists")
|
||||
|
||||
const blocksPerTx = 128 // Number of blocks copied in a transaction.
|
||||
|
||||
|
@ -105,7 +105,7 @@ func (rp *RedisParser) bulkString(line []byte) bool {
|
||||
default:
|
||||
if i > rp.maxBulkStringSize { // prevent denial of service.
|
||||
return rp.consumeError(
|
||||
fmt.Errorf("Bulk string too large (%d bytes).\n", i))
|
||||
fmt.Errorf("bulk string too large (%d bytes)", i))
|
||||
}
|
||||
data := make([]byte, i)
|
||||
for rest := i; rest > 0; {
|
||||
|
Reference in New Issue
Block a user