Return after catching exception
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -255,8 +255,10 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
} catch (std::invalid_argument& inv) {
|
} catch (std::invalid_argument& inv) {
|
||||||
std::cout << inv.what() << std::endl;
|
std::cout << inv.what() << std::endl;
|
||||||
|
return -1;
|
||||||
} catch (int err) {
|
} catch (int err) {
|
||||||
std::cout << strerror(err) << std::endl;
|
std::cout << strerror(err) << std::endl;
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//try {
|
//try {
|
||||||
@@ -267,10 +269,6 @@ int main(int argc, char** argv) {
|
|||||||
//std::cout << strerror(e) << std::endl;
|
//std::cout << strerror(e) << std::endl;
|
||||||
//return -7;
|
//return -7;
|
||||||
//}
|
//}
|
||||||
//} catch(std::invalid_argument& inv) {
|
|
||||||
//std::cout << inv.what() << std::endl;
|
|
||||||
//return -8;
|
|
||||||
//}
|
|
||||||
|
|
||||||
/* Initialize window and other variables */
|
/* Initialize window and other variables */
|
||||||
SetTraceLogLevel(LOG_NONE);
|
SetTraceLogLevel(LOG_NONE);
|
||||||
|
Reference in New Issue
Block a user