git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
86b8aab
)
Better error reporting in netunit.cpp.
author
Maxim Mamontov
<faust.madf@gmail.com>
Sun, 28 Sep 2014 16:07:47 +0000
(19:07 +0300)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Sun, 28 Sep 2014 16:07:47 +0000
(19:07 +0300)
stglibs/srvconf.lib/netunit.cpp
patch
|
blob
|
history
diff --git
a/stglibs/srvconf.lib/netunit.cpp
b/stglibs/srvconf.lib/netunit.cpp
index 182d338c8bfc7168e0477330cf2bf4c45cab4bb6..42b301a5a515c249429901446032775352518fae 100644
(file)
--- a/
stglibs/srvconf.lib/netunit.cpp
+++ b/
stglibs/srvconf.lib/netunit.cpp
@@
-122,7
+122,7
@@
if (!localAddress.empty())
struct hostent * phe = gethostbyname(localAddress.c_str());
if (phe == NULL)
{
- errorMsg = "
DNS error.\nCan not reslove " + localAddress
;
+ errorMsg = "
Can not reslove '" + localAddress + "'"
;
return st_dns_err;
}
@@
-154,7
+154,7
@@
if (ip == INADDR_NONE)
struct hostent * phe = gethostbyname(server.c_str());
if (phe == NULL)
{
- errorMsg = "
DNS error.\nCan not reslove " + server
;
+ errorMsg = "
Can not reslove '" + server + "'"
;
return st_dns_err;
}