Improve error message

This commit is contained in:
2018-09-30 04:06:53 +08:00
parent 83d7f7152f
commit 8e1a5a0172

2
ghcup
View File

@@ -388,7 +388,7 @@ install_ghc() {
) || {
[ -e "${tmp_dir}/${download_tarball_name}" ] && rm "${tmp_dir}/${download_tarball_name}"
[ -e "${tmp_dir}/ghc-${myghcver}" ] && rm -r "${tmp_dir}/ghc-${myghcver}"
die "Failed to install"
die "Failed to install, consider updating this script via: ${SCRIPT} self-update"
}
[ -e "${BIN_LOCATION}" ] || mkdir "${BIN_LOCATION}"