13
0

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
This commit is contained in:
Paul Davis 2013-03-12 16:32:47 +01:00
parent 224edbeb15
commit fe39866bba

View File

@ -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();
}