mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 17:11:57 +00:00
GH-1268 ... and catch the inevitable errors
This commit is contained in:
parent
439c6b43a3
commit
4fbcb3efb9
@ -177,7 +177,14 @@ void InstanceList::saveGroupList()
|
||||
}
|
||||
toplevel.insert("groups", groupsArr);
|
||||
QJsonDocument doc(toplevel);
|
||||
FS::write(groupFileName, doc.toJson());
|
||||
try
|
||||
{
|
||||
FS::write(groupFileName, doc.toJson());
|
||||
}
|
||||
catch(FS::FileSystemException & e)
|
||||
{
|
||||
qCritical() << "Failed to write instance group file :" << e.cause();
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceList::loadGroupList(QMap<QString, QString> &groupMap)
|
||||
|
Loading…
Reference in New Issue
Block a user