summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-07 18:36:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-07 18:36:20 +0000
commit399e941c2255b6ef31afe11878ecab389ae7aa73 (patch)
tree89c17c5db62afa026dcf0d6e4a36b50cafd2cbf0 /src/modules/extra
parent6b3c06f84c8292a6aaa8e42a64c156616923aaf1 (diff)
Readability: pointless construct of a std::string from another std::string for throwing an exception
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10952 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 4cb8d7d59..2f596b50f 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -266,7 +266,7 @@ class ModuleSSLGnuTLS : public Module
if((ret = gnutls_certificate_set_x509_key_file (x509_cred, certfile.c_str(), keyfile.c_str(), GNUTLS_X509_FMT_PEM)) < 0)
{
// If this fails, no SSL port will work. At all. So, do the smart thing - throw a ModuleException
- throw ModuleException("Unable to load GnuTLS server certificate (" + std::string(certfile) + ", key: " + keyfile + "): " + std::string(gnutls_strerror(ret)));
+ throw ModuleException("Unable to load GnuTLS server certificate (" + certfile + ", key: " + keyfile + "): " + std::string(gnutls_strerror(ret)));
}
// This may be on a large (once a day or week) timer eventually.