Skip to content

Commit

Permalink
fix #5792: pass error to unitsync when filesystem init fails
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Feb 21, 2018
1 parent 30b33ab commit 34299cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rts/System/FileSystem/FileSystemInitializer.cpp
Expand Up @@ -75,10 +75,16 @@ bool FileSystemInitializer::Initialize()
// since it can already have early observers registered that
// do not remove themselves until exit
ErrorMessageBox(ex.what(), "Spring: caught std::exception", MBF_OK | MBF_EXCL);
#ifdef UNITSYNC
throw;
#endif
} catch (...) {
initFailure = true;

ErrorMessageBox("", "Spring: caught generic exception", MBF_OK | MBF_EXCL);
#ifdef UNITSYNC
throw;
#endif
}

// in case of an exception, ErrorMessageBox takes care of this
Expand Down

0 comments on commit 34299cd

Please sign in to comment.