logic: Access right hotfix

Catch exception when coati tries to write to a database without sufficient rights. Display error message asking for restart with admin rights

bug id = 43
This commit is contained in:
Manuel Dobusch
2016-02-29 18:07:14 +01:00
parent b3ac0532cc
commit eb831376ce
2 changed files with 9 additions and 1 deletions
Binary file not shown.
+9 -1
View File
@@ -136,7 +136,15 @@ void Application::handleMessage(MessageLoadProject* message)
return;
}
loadProject(message->projectSettingsFilePath);
try
{
loadProject(message->projectSettingsFilePath);
}
catch (...)
{
LOG_ERROR_STREAM(<< "Failed to load project. Try restarting Coati as admin");
MessageStatus("Failed to load project. Try restarting Coati as admin", true).dispatch();
}
}
void Application::handleMessage(MessageRefresh* message)