- client->request(type, toString(userName), toString(password), fromSTGPairs(pairs));
- pthread_mutex_lock(&response.mutex);
- while (!response.done)
- pthread_cond_wait(&response.cond, &response.mutex);
- pthread_mutex_unlock(&response.mutex);
- return toResult(response.result);
- } catch (const STG_CLIENT::Error& ex) {
- // TODO: log error
+ return toResult(client->request(type, toString(userName), toString(password), fromSTGPairs(pairs)));
+ } catch (const std::runtime_error& ex) {
+ RadLog("Error: '%s'.", ex.what());