Skip to content

Commit

Permalink
fix: release terminal (#163)
Browse files Browse the repository at this point in the history
Releasing terminal
  • Loading branch information
limesten authored Dec 29, 2023
1 parent 19ba389 commit 9553a94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ var createCmd = &cobra.Command{
// This calls the templates
err = project.CreateMainFile()
if err != nil {
if releaseErr := spinner.ReleaseTerminal(); releaseErr != nil {
log.Printf("Problem releasing terminal: %v", releaseErr)
}
log.Printf("Problem creating files for project. %v", err)
cobra.CheckErr(textinput.CreateErrorInputModel(err).Err())
}
Expand Down

0 comments on commit 9553a94

Please sign in to comment.