Skip to content

Commit

Permalink
chore: add note about -no-setup option if setup has an error
Browse files Browse the repository at this point in the history
also fix a typo
  • Loading branch information
philjb committed Jan 27, 2025
1 parent 762ef6c commit 374bc3e
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 374bc3e

Please sign in to comment.