projects
/
emufront
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a7b92
)
If database connection fails the main program exits.
author
Mikko Keinänen
<mikko.keinanen@gmail.com>
Sun, 27 Jun 2010 15:14:47 +0000
(18:14 +0300)
committer
Mikko Keinänen
<mikko.keinanen@gmail.com>
Sun, 27 Jun 2010 15:14:47 +0000
(18:14 +0300)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
3c7321c
..
c4d4758
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-38,7
+38,11
@@
int main(int argc, char *argv[])
if (DatabaseManager::openDB())
cout << " Database opened succesfully!" << endl;
- else cout << " Database connection failed!" << endl;
+ else
+ {
+ cout << " Database connection failed!" << endl;
+ exit(1);
+ }
if (reset || !DbCreator::dbExists())
{