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) {
|
||||
std::cout << inv.what() << std::endl;
|
||||
return -1;
|
||||
} catch (int err) {
|
||||
std::cout << strerror(err) << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
//try {
|
||||
@@ -267,10 +269,6 @@ int main(int argc, char** argv) {
|
||||
//std::cout << strerror(e) << std::endl;
|
||||
//return -7;
|
||||
//}
|
||||
//} catch(std::invalid_argument& inv) {
|
||||
//std::cout << inv.what() << std::endl;
|
||||
//return -8;
|
||||
//}
|
||||
|
||||
/* Initialize window and other variables */
|
||||
SetTraceLogLevel(LOG_NONE);
|
||||
|
Reference in New Issue
Block a user