From b38b80937853b8fdc6849b835581897c219748ad Mon Sep 17 00:00:00 2001 From: Joshua Nichols Date: Tue, 19 Sep 2006 03:42:17 +0000 Subject: Added saner error message for when a tool isn't available. svn path=/projects/java-config-2/trunk/; revision=2882 --- src/run-java-tool | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/run-java-tool b/src/run-java-tool index 600ae51..52ab607 100644 --- a/src/run-java-tool +++ b/src/run-java-tool @@ -23,17 +23,17 @@ elif [[ -x ${jrebin} ]]; then exec ${jrebin} "${@}" else if [[ ! -d ${vmpath} ]]; then - echo "Home for VM '${vm_handle}' does not exist: ${vmpath}" >&2 + echo "* Home for VM '${vm_handle}' does not exist: ${vmpath}" >&2 if [[ -n ${GENTOO_VM} ]]; then - echo "Invalid value for GENTOO_VM: ${GENTOO_VM}" + echo "* Invalid value for GENTOO_VM: ${GENTOO_VM}" elif [[ -h ${user_vm} ]]; then - echo "Invalid User VM: ${vm_handle}" >&2 + echo "* Invalid User VM: ${vm_handle}" >&2 else - echo "Invalid System VM: ${vm_handle}" >&2 + echo "* Invalid System VM: ${vm_handle}" >&2 fi else - echo "Tried to execute ${bin} and ${jrebin}, but neither exist." >&2 - echo "Perhaps there is something wrong with the install of ${vm_handle}?" >&2 + echo "* ${tool} is not available for ${vm_handle} on $(uname -m)" >&2 + echo "* IMPORTANT: some Java tools are not available on some VMs on some architectures" >&2 fi exit 1 fi -- cgit v1.2.3-65-gdbad