Adding details in the throw exception on a missing field.
This commit is contained in:
parent
f8105f0006
commit
05b17f9271
@ -796,7 +796,7 @@ public final class TypeAdapters {
|
||||
constantToName.put(constant, name);
|
||||
}
|
||||
} catch (NoSuchFieldException e) {
|
||||
throw new AssertionError();
|
||||
throw new AssertionError("Missing field in " + classOfT.getName(), e);
|
||||
}
|
||||
}
|
||||
@Override public T read(JsonReader in) throws IOException {
|
||||
|
Loading…
Reference in New Issue
Block a user