Skip to content

Commit

Permalink
Improved some output texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaakko Heusala committed Apr 13, 2024
1 parent 89a09c0 commit c382bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/utils/templates/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ func main() {
os.Exit(1)
return
}
fmt.Println("INSTALLER: Executable replaced successfully.")

// Attempt to delete the backup file
err = os.Remove(backupFile)
if err != nil {
// If there was an error deleting the file, print it out
fmt.Printf("INSTALLER: Error removing file: %v\n", err)
fmt.Printf("INSTALLER: Error removing backup file: %v\n", err)
os.Exit(1)
return
}
Expand Down

0 comments on commit c382bb3

Please sign in to comment.