diff options
author | Yohann Roussel <yroussel@google.com> | 2014-04-09 18:26:38 +0200 |
---|---|---|
committer | Yohann Roussel <yroussel@google.com> | 2014-04-09 18:28:46 +0200 |
commit | c6a00fc79a8a4031eaba2de2734a66c9dd7f6d6a (patch) | |
tree | 78fe6e294b7a58383a734f154dbc75ca5c50f558 /jack | |
parent | 0a6ffa16d3df62d16990227909b3a271e17f3935 (diff) | |
download | toolchain_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.java | 5 |
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); } } } |