Skip to content

Commit 5e36e07

Browse files
committed
Different message for GSON parser
1 parent 6fe8bc1 commit 5e36e07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core-api/src/main/java/com/optimizely/ab/config/parser/GsonConfigParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ final class GsonConfigParser implements ConfigParser {
3434
@Override
3535
public ProjectConfig parseProjectConfig(@Nonnull String json) throws ConfigParseException {
3636
if (json == null) {
37-
throw new ConfigParseException("Unable to parse null datafile.");
37+
throw new ConfigParseException("Unable to parse null json.");
3838
}
3939
if (json.length() == 0) {
40-
throw new ConfigParseException("Unable to parse empty datafile.");
40+
throw new ConfigParseException("Unable to parse empty json.");
4141
}
4242
Gson gson = new GsonBuilder()
4343
.registerTypeAdapter(ProjectConfig.class, new ProjectConfigGsonDeserializer())

0 commit comments

Comments
 (0)