summaryrefslogtreecommitdiffstats
path: root/src/socket/ingen_socket_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket/ingen_socket_client.cpp')
-rw-r--r--src/socket/ingen_socket_client.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/socket/ingen_socket_client.cpp b/src/socket/ingen_socket_client.cpp
index 0e8c95bf..e835adc8 100644
--- a/src/socket/ingen_socket_client.cpp
+++ b/src/socket/ingen_socket_client.cpp
@@ -14,9 +14,11 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <errno.h>
+
+#include "ingen/Log.hpp"
#include "ingen/Module.hpp"
#include "ingen/World.hpp"
-#include "raul/log.hpp"
#include "Socket.hpp"
#include "SocketClient.hpp"
@@ -29,6 +31,8 @@ new_socket_interface(Ingen::World* world,
SharedPtr<Ingen::Socket::Socket> sock(
new Ingen::Socket::Socket(Ingen::Socket::Socket::type_from_uri(uri)));
if (!sock->connect(uri)) {
+ world->log().error(Raul::fmt("Failed to connect <%1%> (%2%)\n")
+ % sock->uri() % strerror(errno));
return SharedPtr<Ingen::Interface>();
}
Ingen::Socket::SocketClient* client = new Ingen::Socket::SocketClient(