Print out success or failure message