Skip to content

Commit

Permalink
fix: add causal error when meta.db is missing (#22905)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesam authored Nov 24, 2021
1 parent f47d514 commit 8aa3a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influxd/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func (o *optionsV1) validatePaths() error {
metaDb := filepath.Join(o.metaDir, "meta.db")
_, err := os.Stat(metaDb)
if err != nil {
return fmt.Errorf("1.x meta.db '%s' does not exist", metaDb)
return fmt.Errorf("1.x meta.db '%s' does not exist: %w", metaDb, err)
}

return nil
Expand Down

0 comments on commit 8aa3a8f

Please sign in to comment.