Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[nomaster] SI-7652 Bad tools fails loudly

A brief message is all that's required to
alleviate the look of consternation on the
face of your user.
  • Loading branch information...
1 parent 7a0d983 commit 8b10daf2cb4367cd2565bd67efd2b6ead94ca18e @som-snytt som-snytt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/compiler/scala/tools/util/Javap.scala
2  src/compiler/scala/tools/util/Javap.scala
@@ -50,7 +50,7 @@ class JavapClass(
tryFile(path) getOrElse tryClass(path)
def apply(args: Seq[String]): List[JpResult] = {
- if (failed) Nil
+ if (failed) List(new JpError("Could not load javap tool. Check that JAVA_HOME is correct."))
else args.toList filterNot (_ startsWith "-") map { path =>
val bytes = findBytes(path)
if (bytes.isEmpty) new JpError("Could not find class bytes for '%s'".format(path))

0 comments on commit 8b10daf

Please sign in to comment.
Something went wrong with that request. Please try again.