Skip to content

Commit

Permalink
Merge pull request #45 from influxdata/pjb/typo-warning
Browse files Browse the repository at this point in the history
chore: add note about -no-setup option if setup has an error
  • Loading branch information
philjb authored Jan 27, 2025
2 parents 762ef6c + 374bc3e commit 56a9750
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inch.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (s *Simulator) Run(ctx context.Context) error {
fmt.Fprintf(s.Stdout, "Precision: %s\n", s.Precision)

if s.V2 == true && s.Token == "" {
fmt.Println("ERROR: Need to provide a token in ordere to write into InfluxDB 2.0")
fmt.Println("ERROR: Need to provide a token in order to write into InfluxDB 2.0")
return err
}

Expand All @@ -239,6 +239,7 @@ func (s *Simulator) Run(ctx context.Context) error {

// Initialize database.
if err := s.SetupFn(s); err != nil {
fmt.Fprintf(s.Stdout, "ERROR with database setup: you may want to use the `-no-setup` option.")
return err
}

Expand Down

0 comments on commit 56a9750

Please sign in to comment.