mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 16:07:40 +00:00
Catch exceptions and write out their message
This commit is contained in:
parent
f4d5fb4c25
commit
046f5f2b2e
1 changed files with 75 additions and 67 deletions
|
@ -632,6 +632,8 @@ void AddSourceFileTimestamp(const char *timestamp)
|
|||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (argc != 2)
|
||||
{
|
||||
|
@ -708,3 +710,9 @@ int main(int argc, char **argv)
|
|||
|
||||
return 0;
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << std::endl;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue