mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] More details in error when reading launcher module config file
This commit is contained in:
parent
ae994ebb4f
commit
7dcc5aef3f
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,9 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
|
|||
} else {
|
||||
try (Reader reader = IOHelper.newReader(configPath)) {
|
||||
targetConfig = Launcher.gsonManager.configGson.fromJson(reader, clazz);
|
||||
} catch (Exception e) {
|
||||
logger.error("Error when reading config {} in module {}: {}", configPath, file, e);
|
||||
return super.visitFile(file, attrs);
|
||||
}
|
||||
}
|
||||
if (entity.propertyMap == null) entity.propertyMap = new HashMap<>();
|
||||
|
|
Loading…
Reference in a new issue