Fix typo in error messages (#1193)
Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit is contained in:
parent
ea3a891c91
commit
f1ee9d0665
|
@ -19,7 +19,7 @@ const (
|
|||
|
||||
var (
|
||||
errDecode = errors.New("failed to decode senml")
|
||||
errNormalize = errors.New("faled to normalize senml")
|
||||
errNormalize = errors.New("failed to normalize senml")
|
||||
)
|
||||
|
||||
var formats = map[string]senml.Format{
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/mainflux/mainflux/readers"
|
||||
)
|
||||
|
||||
var errReadMessages = errors.New("faled to read messages from cassandra database")
|
||||
var errReadMessages = errors.New("failed to read messages from cassandra database")
|
||||
|
||||
var _ readers.MessageRepository = (*cassandraRepository)(nil)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
|
||||
const countCol = "count"
|
||||
|
||||
var errReadMessages = errors.New("faled to read messages from influxdb database")
|
||||
var errReadMessages = errors.New("failed to read messages from influxdb database")
|
||||
|
||||
var _ readers.MessageRepository = (*influxRepository)(nil)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
const collection = "mainflux"
|
||||
|
||||
var errReadMessages = errors.New("faled to read messages from mongodb database")
|
||||
var errReadMessages = errors.New("failed to read messages from mongodb database")
|
||||
|
||||
var _ readers.MessageRepository = (*mongoRepository)(nil)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
const errInvalid = "invalid_text_representation"
|
||||
|
||||
var errReadMessages = errors.New("faled to read messages from postgres database")
|
||||
var errReadMessages = errors.New("failed to read messages from postgres database")
|
||||
|
||||
var _ readers.MessageRepository = (*postgresRepository)(nil)
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/mainflux/mainflux/writers"
|
||||
)
|
||||
|
||||
var errSaveMessage = errors.New("faled to save message to cassandra database")
|
||||
var errSaveMessage = errors.New("failed to save message to cassandra database")
|
||||
|
||||
var _ writers.MessageRepository = (*cassandraRepository)(nil)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
|
||||
const pointName = "messages"
|
||||
|
||||
var errSaveMessage = errors.New("faled to save message to influxdb database")
|
||||
var errSaveMessage = errors.New("failed to save message to influxdb database")
|
||||
|
||||
var _ writers.MessageRepository = (*influxRepo)(nil)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
const collectionName string = "mainflux"
|
||||
|
||||
var errSaveMessage = errors.New("faled to save message to mongodb database")
|
||||
var errSaveMessage = errors.New("failed to save message to mongodb database")
|
||||
|
||||
var _ writers.MessageRepository = (*mongoRepo)(nil)
|
||||
|
||||
|
|
Loading…
Reference in New Issue