Skip to content

Commit

Permalink
fix: log "user aborted" as debug level (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
y3owk1n authored Dec 7, 2024
1 parent b2a3c1d commit 98db947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func SelectProject(projects []utils.Directory) (string, error) {
err := form.Run()
if err != nil {
if err.Error() == "user aborted" {
utils.Logger.Info("User aborted project selection")
utils.Logger.Debug("User aborted project selection")
fmt.Println("Until next time!")
os.Exit(0)
}
Expand Down Expand Up @@ -228,6 +228,7 @@ func handleExistingFile(sourcePath, destinationPath string) error {
err := form.Run()
if err != nil {
if err.Error() == "user aborted" {
utils.Logger.Debug("User aborted project selection")
fmt.Println("Until next time!")
os.Exit(0)
}
Expand Down Expand Up @@ -258,6 +259,7 @@ func ConfirmCwd() error {
err := form.Run()
if err != nil {
if err.Error() == "user aborted" {
utils.Logger.Debug("User aborted project selection")
fmt.Println("Until next time!")
os.Exit(0)
}
Expand Down

0 comments on commit 98db947

Please sign in to comment.