summaryrefslogtreecommitdiffstats
path: root/jack
diff options
context:
space:
mode:
authorYohann Roussel <yroussel@google.com>2014-04-09 18:26:38 +0200
committerYohann Roussel <yroussel@google.com>2014-04-09 18:28:46 +0200
commitc6a00fc79a8a4031eaba2de2734a66c9dd7f6d6a (patch)
tree78fe6e294b7a58383a734f154dbc75ca5c50f558 /jack
parent0a6ffa16d3df62d16990227909b3a271e17f3935 (diff)
downloadtoolchain_jack-c6a00fc79a8a4031eaba2de2734a66c9dd7f6d6a.zip
toolchain_jack-c6a00fc79a8a4031eaba2de2734a66c9dd7f6d6a.tar.gz
toolchain_jack-c6a00fc79a8a4031eaba2de2734a66c9dd7f6d6a.tar.bz2
Better error message when one entry of path is not readable.
Bug 9309185 Change-Id: If69fae47fb75ab5924629d5b5a730cec2fded02e
Diffstat (limited to 'jack')
-rw-r--r--jack/src/com/android/jack/jayce/JaycePackageLoader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/jack/src/com/android/jack/jayce/JaycePackageLoader.java b/jack/src/com/android/jack/jayce/JaycePackageLoader.java
index 112e49f..b24d87a 100644
--- a/jack/src/com/android/jack/jayce/JaycePackageLoader.java
+++ b/jack/src/com/android/jack/jayce/JaycePackageLoader.java
@@ -67,8 +67,9 @@ public class JaycePackageLoader implements ComposablePackageLoader {
return new JayceClassOrInterfaceLoader((InputVFile) sub, lookup, defaultLoadLevel)
.loadClassOrInterface(loading, simpleName);
} catch (IOException e) {
- throw new JackIOException("Failed to load class '" + simpleName + "' in package '"
- + Jack.getUserFriendlyFormatter().getName(loading) + "' from '" + sub + "'" , e);
+ throw new JackIOException("Failed to load class " +
+ Jack.getUserFriendlyFormatter().getName(loading, simpleName) +
+ ": " + e.getMessage() , e);
}
}
}