Skip to content

Commit

Permalink
Fix typo in error messages (#1193)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milošević <iva@blokovi.com>
  • Loading branch information
blokovi authored Jun 3, 2020
1 parent ea3a891 commit f1ee9d0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/transformers/senml/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion readers/cassandra/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion readers/influxdb/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion readers/mongodb/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion readers/postgres/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion writers/cassandra/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion writers/influxdb/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion writers/mongodb/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f1ee9d0

Please sign in to comment.