Fix bad utils return value on error. Build network errors with a message and not just an error code.

This commit is contained in:
2021-07-29 21:14:48 +02:00
parent b5eb0efd31
commit bdaceba2e0
3 changed files with 10 additions and 8 deletions

View File

@@ -66,6 +66,7 @@ public:
void run()
{
int ret = 0;
try
{
DRMProcessorClientImpl client;
@@ -99,10 +100,10 @@ public:
} catch(std::exception& e)
{
std::cout << e.what() << std::endl;
this->app->exit(1);
ret = 1;
}
this->app->exit(0);
this->app->exit(ret);
}
private: