Skip to content

Commit ee0ac0a

Browse files
author
Yuri Shkuro
committed
normalize error msg
Signed-off-by: Yuri Shkuro <ys@uber.com>
1 parent d9b3f9f commit ee0ac0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/storage/cassandra/spanstore/dbmodel/converter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (c converter) fromDBTag(tag *KeyValue) (model.KeyValue, error) {
135135
case binaryType:
136136
return model.Binary(tag.Key, tag.ValueBinary), nil
137137
}
138-
return model.KeyValue{}, fmt.Errorf("unknown ValueType in %+v", tag)
138+
return model.KeyValue{}, fmt.Errorf("invalid ValueType in %+v", tag)
139139
}
140140

141141
func (c converter) fromDBLogs(logs []Log) ([]model.Log, error) {

plugin/storage/cassandra/spanstore/dbmodel/converter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var (
116116
TraceID: someDBTraceID,
117117
},
118118
}
119-
notValidTagTypeErrStr = "unknown ValueType in"
119+
notValidTagTypeErrStr = "invalid ValueType in"
120120
)
121121

122122
func getTestJaegerSpan() *model.Span {

0 commit comments

Comments
 (0)