MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / error

Method error

client/ovpncli.cpp:171–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 virtual void error(const size_t err, const std::string* text=nullptr)
172 {
173 if (err < Error::N_ERRORS)
174 {
175#ifdef OPENVPN_DEBUG_VERBOSE_ERRORS
176 if (text)
177 OPENVPN_LOG("ERROR: " << Error::name(err) << " : " << *text);
178 else
179 OPENVPN_LOG("ERROR: " << Error::name(err));
180#endif
181 ++errors[err];
182 }
183 }
184
185 private:
186 OpenVPNClient* parent;

Callers 3

parse_configMethod · 0.45
build_merge_configMethod · 0.45
external_pki_errorMethod · 0.45

Calls 1

nameFunction · 0.50

Tested by

no test coverage detected