Improve error message

This commit is contained in:
Julian Ospald 2018-09-30 04:06:53 +08:00
parent 83d7f7152f
commit 8e1a5a0172
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

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}"