Skip to content

Commit

Permalink
clean: Warn for cleanup failures due to missing datadir
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Jan 17, 2023
1 parent 71405f3 commit 20a293f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func cleanData(env *environment.Environment, names []string, all bool) error {
return err
}
if process == nil {
fmt.Fprintf(os.Stderr, "Can't clean directory due to missing meta file: %s\n",
filepath.Join(dataDir, dir.Name()))
continue
}

Expand Down

0 comments on commit 20a293f

Please sign in to comment.