From fe39866bba9c1d0cbfb89dcb26235b8f953cc5a4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 12 Mar 2013 16:32:47 +0100 Subject: [PATCH] fix error reporting for a realpath(2) error git-svn-id: svn+ssh://subversion.ardour.org/ardour2/branches/3.0@14214 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index b6df5d5cbb..9885c15ffa 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -136,7 +136,7 @@ Session::first_stage_init (string fullpath, string snapshot_name) char buf[PATH_MAX+1]; if (!realpath (fullpath.c_str(), buf) && (errno != ENOENT)) { - error << string_compose(_("Could not use path %1 (%s)"), buf, strerror(errno)) << endmsg; + error << string_compose(_("Could not use path %1 (%2)"), buf, strerror(errno)) << endmsg; destroy (); throw failed_constructor(); }