Changeset 9853bc3 in nscp for modules/NRPEClient/NRPEClient.cpp
- Timestamp:
- 11/29/11 14:03:54 (18 months ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- f33c12f
- Parents:
- 96c1461
- File:
-
- 1 edited
-
modules/NRPEClient/NRPEClient.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/NRPEClient/NRPEClient.cpp
r96c1461 r9853bc3 82 82 ; 83 83 84 settings.alias( _T("/targets/default")).add_key_to_settings()84 settings.alias().add_key_to_settings(_T("targets/default")) 85 85 86 86 (_T("timeout"), sh::uint_key(&timeout, 30), … … 386 386 #else 387 387 NSC_LOG_ERROR_STD(_T("SSL not avalible (compiled without USE_SSL)")); 388 return boost:: tie(NSCAPI::returnUNKNOWN, _T("SSL support not available (compiled without USE_SSL)"));388 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("SSL support not available (compiled without USE_SSL)")); 389 389 #endif 390 390 } else … … 392 392 return boost::make_tuple(static_cast<int>(packet.getResult()), packet.getPayload()); 393 393 } catch (nrpe::nrpe_packet_exception &e) { 394 return boost:: tie(NSCAPI::returnUNKNOWN, _T("NRPE Packet errro: ") + e.wwhat());394 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("NRPE Packet errro: ") + e.wwhat()); 395 395 } catch (std::runtime_error &e) { 396 396 NSC_LOG_ERROR_STD(_T("Socket error: ") + utf8::to_unicode(e.what())); 397 return boost:: tie(NSCAPI::returnUNKNOWN, _T("Socket error: ") + utf8::to_unicode(e.what()));397 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("Socket error: ") + utf8::to_unicode(e.what())); 398 398 } catch (std::exception &e) { 399 399 NSC_LOG_ERROR_STD(_T("Error: ") + utf8::to_unicode(e.what())); 400 return boost:: tie(NSCAPI::returnUNKNOWN, _T("Error: ") + utf8::to_unicode(e.what()));400 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("Error: ") + utf8::to_unicode(e.what())); 401 401 } catch (...) { 402 return boost:: tie(NSCAPI::returnUNKNOWN, _T("Unknown error -- REPORT THIS!"));402 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("Unknown error -- REPORT THIS!")); 403 403 } 404 404 }
Note: See TracChangeset
for help on using the changeset viewer.








