diff options
author | Kenny Root <kroot@google.com> | 2011-09-23 10:09:58 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-09-23 10:13:06 -0700 |
commit | fec5e75c96e8a35a7a6e55c40d435f72a80c97df (patch) | |
tree | 3fd0f71dbe7d4b97a7e24d71da9c712cb8555a38 /services | |
parent | a8c46b1dc47f0fa92f41c6311ca6131d18efbcd4 (diff) | |
download | frameworks_base-fec5e75c96e8a35a7a6e55c40d435f72a80c97df.zip frameworks_base-fec5e75c96e8a35a7a6e55c40d435f72a80c97df.tar.gz frameworks_base-fec5e75c96e8a35a7a6e55c40d435f72a80c97df.tar.bz2 |
Less verbose message when dexopt non-APK
The message when something is not an APK that is submitted for dexopt is
not extremely helpful. Make it more precise and remove the useless
traceback.
Change-Id: Ibb34b2b2c10ee28ea98662c3f6fd070529cf8c4f
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/pm/PackageManagerService.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java index 105e603..e60b307 100644 --- a/services/java/com/android/server/pm/PackageManagerService.java +++ b/services/java/com/android/server/pm/PackageManagerService.java @@ -945,7 +945,8 @@ public class PackageManagerService extends IPackageManager.Stub { } catch (FileNotFoundException e) { Slog.w(TAG, "Boot class path not found: " + paths[i]); } catch (IOException e) { - Slog.w(TAG, "Exception reading boot class path: " + paths[i], e); + Slog.w(TAG, "Cannot dexopt " + paths[i] + "; is it an APK or JAR? " + + e.getMessage()); } } } else { @@ -968,7 +969,8 @@ public class PackageManagerService extends IPackageManager.Stub { } catch (FileNotFoundException e) { Slog.w(TAG, "Library not found: " + lib); } catch (IOException e) { - Slog.w(TAG, "Exception reading library: " + lib, e); + Slog.w(TAG, "Cannot dexopt " + lib + "; is it an APK or JAR? " + + e.getMessage()); } } } |