projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: Improve handling of core initialization errors
[quassel.git]
/
src
/
core
/
coreapplication.cpp
diff --git
a/src/core/coreapplication.cpp
b/src/core/coreapplication.cpp
index
cacd671
..
e73a09f
100644
(file)
--- a/
src/core/coreapplication.cpp
+++ b/
src/core/coreapplication.cpp
@@
-40,11
+40,12
@@
CoreApplication::~CoreApplication()
}
}
-
bool
CoreApplication::init()
+
void
CoreApplication::init()
{
{
- if (Quassel::init()) {
- _core.reset(new Core{}); // FIXME C++14: std::make_unique
- return _core->init();
+ if (!Quassel::init()) {
+ throw ExitException{EXIT_FAILURE, tr("Could not initialize Quassel!")};
}
}
- return false;
+
+ _core.reset(new Core{}); // FIXME C++14: std::make_unique
+ _core->init();
}
}