forked from soutade/libgourou
Fix bad utils return value on error. Build network errors with a message and not just an error code.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user