Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
aa230458
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "c4c0ef98d06c7011d80991827b099a6266b7075c"
Commit
aa230458
authored
Oct 11, 2012
by
Davis King
Browse files
Made the error message from connect() a little more informative.
parent
a1daeea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dlib/sockets/sockets_extensions.cpp
dlib/sockets/sockets_extensions.cpp
+5
-1
No files found.
dlib/sockets/sockets_extensions.cpp
View file @
aa230458
...
@@ -36,7 +36,11 @@ namespace dlib
...
@@ -36,7 +36,11 @@ namespace dlib
}
}
if
(
create_connection
(
con
,
port
,
ip
))
if
(
create_connection
(
con
,
port
,
ip
))
throw
socket_error
(
"unable to connect to '"
+
host_or_ip
+
"'"
);
{
std
::
ostringstream
sout
;
sout
<<
"unable to connect to '"
<<
host_or_ip
<<
":"
<<
port
<<
"'"
;
throw
socket_error
(
sout
.
str
());
}
return
con
;
return
con
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment