Skip to content

Commit

Permalink
adds destination when not able to scaffold
Browse files Browse the repository at this point in the history
Error information was lacking the existing directory information, making it hard for the user to know what the problem is.
  • Loading branch information
davidovich committed Jan 9, 2024
1 parent 9323140 commit 665bab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scaffold/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Create(destDir, modName, summonerName string, force bool) error {
empty, err := isEmptyDir(destDir)
if !force && !empty || err != nil {
if err == nil || !os.IsNotExist(err) {
return fmt.Errorf("destination directory is not empty")
return fmt.Errorf("destination directory is not empty: %s", destDir)
}
}

Expand Down

0 comments on commit 665bab9

Please sign in to comment.