Improve error messages
This commit is contained in:
parent
ce314365dd
commit
894a279a2d
9
ghcup
9
ghcup
@ -707,9 +707,12 @@ rm_ghc() {
|
|||||||
done
|
done
|
||||||
edo rm -r "${inst_location}"
|
edo rm -r "${inst_location}"
|
||||||
|
|
||||||
status_message "Successfully removed GHC ${myghcver}, you might have to"
|
status_message "Successfully removed GHC ${myghcver}."
|
||||||
status_message "set the currently active GHC now to fix dangling symlinks:"
|
|
||||||
status_message " ghcup set <ghcver>"
|
if [ ! -e "${BIN_LOCATION}"/ghc ] ; then
|
||||||
|
warning_message "Currently active GHC is a dangling symlink, run:"
|
||||||
|
warning_message " ghcup set <ghcver>"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
warning_message "${myghcver} doesn't appear to be installed, skipping"
|
warning_message "${myghcver} doesn't appear to be installed, skipping"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user