File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
HMCL/src/main/java/org/jackhuang/hmcl/ui/versions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717 */
1818package org .jackhuang .hmcl .ui .versions ;
1919
20+ import com .google .gson .JsonParseException ;
2021import javafx .application .Platform ;
2122import javafx .beans .property .ObjectProperty ;
2223import javafx .beans .property .SimpleObjectProperty ;
@@ -82,8 +83,8 @@ public GameItem(Profile profile, String id) {
8283 ModpackConfiguration <?> config = profile .getRepository ().readModpackConfiguration (version );
8384 if (config == null ) return ;
8485 tag .set (config .getVersion ());
85- } catch (IOException e ) {
86- LOG .log (Level .WARNING , "Failed to read modpack configuration from " , e );
86+ } catch (IOException | JsonParseException e ) {
87+ LOG .log (Level .WARNING , "Failed to read modpack configuration from " + version , e );
8788 }
8889 }, Platform ::runLater )
8990 .exceptionally (handleUncaught );
You can’t perform that action at this time.
0 commit comments