From 665bab943dbef6a0ec3a573b6d4a25d75d97bd8c Mon Sep 17 00:00:00 2001 From: David Genest Date: Tue, 9 Jan 2024 08:51:41 -0500 Subject: [PATCH] adds destination when not able to scaffold Error information was lacking the existing directory information, making it hard for the user to know what the problem is. --- internal/scaffold/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/scaffold/create.go b/internal/scaffold/create.go index 595fbcb..51e30e6 100644 --- a/internal/scaffold/create.go +++ b/internal/scaffold/create.go @@ -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) } }