Skip to content

Commit

Permalink
clean: Warn for cleanup failures due to missing datadir (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Feb 2, 2023
1 parent d014d03 commit 0f38c96
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 0f38c96

Please sign in to comment.