Changeset 30bfe74 in nscp for NSCPlugin.cpp


Ignore:
Timestamp:
11/12/07 20:26:00 (6 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
5782414
Parents:
eceb8c7
Message:

2007-11-12 MickeM

+ Added option to configure socket_timeout (default is now 30 seconds) should (I hope) fix issue #85

2007-11-11 MickeM

+ Added option to configure the behavior of CheckService? CheckAll? (#64)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NSCPlugin.cpp

    rdc65e35 r30bfe74  
    2121#include "stdafx.h" 
    2222#include "NSClient++.h" 
     23#include <error.hpp> 
    2324/** 
    2425 * Default c-tor 
     
    6364    hModule_ = LoadLibrary(file_.c_str()); 
    6465    if (!hModule_) 
    65       throw NSPluginException(file_, "Could not load library: ", GetLastError()); 
     66      throw NSPluginException(file_, "Could not load library: " + error::lookup::last_error()); 
    6667    loadRemoteProcs_(); 
    6768    if (!fLoadModule) 
     
    115116  hModule_ = LoadLibrary(file_.c_str()); 
    116117  if (!hModule_) 
    117     throw NSPluginException(file_, "Could not load library: ", GetLastError()); 
     118    throw NSPluginException(file_, "Could not load library: " + error::lookup::last_error()); 
    118119  loadRemoteProcs_(); 
    119120  bLoaded_ = true; 
Note: See TracChangeset for help on using the changeset viewer.