From 68e72c94c88387e6ab158ffd7c1854afa59c75f3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Jan 2012 13:34:20 +0000 Subject: more useful error message when an internal send fails to find its target git-svn-id: svn://localhost/ardour2/branches/3.0@11328 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/internal_send.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/internal_send.cc') diff --git a/libs/ardour/internal_send.cc b/libs/ardour/internal_send.cc index 27e219dd22..b4d89fb986 100644 --- a/libs/ardour/internal_send.cc +++ b/libs/ardour/internal_send.cc @@ -276,7 +276,8 @@ InternalSend::connect_when_legal () boost::shared_ptr sendto; if ((sendto = _session.route_by_id (_send_to_id)) == 0) { - error << X_("cannot find route to connect to") << endmsg; + error << string_compose (_("%1 - cannot find any track/bus with the ID %2 to connect to"), display_name(), _send_to_id) << endmsg; + cerr << string_compose (_("%1 - cannot find any track/bus with the ID %2 to connect to"), display_name(), _send_to_id) << endl; return -1; } -- cgit v1.2.3