netpuncher: Add runtime error handling

Previously, the netpuncher would just exit silently when encountering an
error.
alut-include-path
Lukas Werling 2017-01-07 17:22:28 +01:00
parent 5a09c1d4a5
commit 97be97c94c
1 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,11 @@ int main(int argc, char * argv[])
printf("Listening on port %d...\n", iPort);
// Execute forever
Puncher.ExecuteUntil(-1);
for (;;)
{
Puncher.ExecuteUntil(-1);
fprintf(stderr, "ERROR: %s\n", Puncher.GetError());
}
return 0;
}