Skip to content

Commit

Permalink
[M3][Color] Provide better logging for ColorResourcesTableCreator
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 449003101
(cherry picked from commit 29fddaa)
  • Loading branch information
Material Design Team authored and pekingme committed May 25, 2022
1 parent dff14ca commit b33cf80
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -74,7 +74,11 @@ static byte[] create(Context context, Map<Integer, Integer> colorMapping) throws
context.getResources().getResourceName(entry.getKey()),
entry.getValue());
if (colorResource.typeId != TYPE_ID_COLOR) {
throw new IllegalArgumentException("Non color resource found: " + colorResource.name);
throw new IllegalArgumentException(
"Non color resource found: name="
+ colorResource.name
+ ", typeId="
+ Integer.toHexString(colorResource.typeId & 0xFF));
}
PackageInfo packageInfo;
if (colorResource.packageId == ANDROID_PACKAGE_ID) {
Expand Down

0 comments on commit b33cf80

Please sign in to comment.