diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-09-19 03:42:17 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-09-19 03:42:17 +0000 |
commit | b38b80937853b8fdc6849b835581897c219748ad (patch) | |
tree | 8d4f2d6fa2051176b7135e72a49d2835af0fe0c7 | |
parent | Use a slightly smarter way of checking multilibness (diff) | |
download | java-config-b38b80937853b8fdc6849b835581897c219748ad.tar.gz java-config-b38b80937853b8fdc6849b835581897c219748ad.tar.bz2 java-config-b38b80937853b8fdc6849b835581897c219748ad.zip |
Added saner error message for when a tool isn't available.
svn path=/projects/java-config-2/trunk/; revision=2882
-rw-r--r-- | src/run-java-tool | 12 |
1 files 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 |