fix(clean): Add clean directory warning on fail

This commit is contained in:
jguer 2020-08-19 00:58:10 +02:00
parent ce79d53eb2
commit ab3c66ab98
No known key found for this signature in database
GPG Key ID: 6D6CC9BEA8556B35

View File

@ -195,6 +195,7 @@ func cleanUntracked() error {
dir := filepath.Join(config.BuildDir, file.Name())
if isGitRepository(dir) {
if err := show(passToGit(dir, "clean", "-fx")); err != nil {
text.Warnln(gotext.Get("Unable to clean:"), dir)
return err
}
}