Skip to content

Commit 19f39ee

Browse files
committed
Fix build errors
1 parent c9cbde9 commit 19f39ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/appender/appender.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func (mc *MetricsCache) AddFast(ref uint64, t int64, v interface{}) error {
271271
metric, ok := mc.getMetric(ref)
272272
if !ok {
273273
// do not change error msg, it's parsed by prom
274-
return fmt.Errorf(fmt.Sprintf("metric not found. ref=%v", ref))
274+
return fmt.Errorf("metric not found. ref=%v", ref)
275275
}
276276

277277
err = metric.error()

pkg/tsdb/v3iotsdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func CreateTSDB(cfg *config.V3ioConfig, schema *config.Schema, container v3io.Co
100100
for i := 0; i < 8; i++ {
101101
_, err = container.GetObjectSync(&v3io.GetObjectInput{Path: path, DataPlaneInput: dataPlaneInput})
102102
if err == nil {
103-
return fmt.Errorf("A TSDB table already exists at path '" + cfg.TablePath + "'.")
103+
return fmt.Errorf("A TSDB table already exists at path '%s'.", cfg.TablePath)
104104
} else if e, hasStatusCode := err.(v3ioerrors.ErrorWithStatusCode); hasStatusCode && e.StatusCode() != http.StatusNotFound {
105105
err = errors.Wrapf(err, "Failed to check TSDB schema at path '%s/%s/%s'.", cfg.WebAPIEndpoint, cfg.Container, path)
106106
lgr.Error(err)

0 commit comments

Comments
 (0)