Updated the installer to properly print the error message when upgrade fails.