fix rename error message
authorRobin Gareus <robin@gareus.org>
Sun, 5 Apr 2015 13:40:25 +0000 (15:40 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 5 Apr 2015 13:40:25 +0000 (15:40 +0200)
libs/ardour/session_state.cc

index 2ac6c9a8020e9569361a30bf9c4696fb9ce12136..c72ec8b873391fd1b005d784b6376754f471239d 100644 (file)
@@ -3686,7 +3686,7 @@ Session::rename (const std::string& new_name)
                cerr << "Rename " << oldstr << " => " << newstr << endl;                
 
                if (::g_rename (oldstr.c_str(), newstr.c_str()) != 0) {
-                       error << string_compose (_("renaming %s as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
+                       error << string_compose (_("renaming %1 as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
                        return 1;
                }
 
@@ -3714,7 +3714,7 @@ Session::rename (const std::string& new_name)
                cerr << "Rename " << oldstr << " => " << newstr << endl;
                
                if (::g_rename (oldstr.c_str(), newstr.c_str()) != 0) {
-                       error << string_compose (_("renaming %s as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
+                       error << string_compose (_("renaming %1 as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
                        return 1;
                }
        }
@@ -3727,7 +3727,7 @@ Session::rename (const std::string& new_name)
        cerr << "Rename " << oldstr << " => " << newstr << endl;                
 
        if (::g_rename (oldstr.c_str(), newstr.c_str()) != 0) {
-               error << string_compose (_("renaming %s as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
+               error << string_compose (_("renaming %1 as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
                return 1;
        }
 
@@ -3742,7 +3742,7 @@ Session::rename (const std::string& new_name)
                cerr << "Rename " << oldstr << " => " << newstr << endl;                
                
                if (::g_rename (oldstr.c_str(), newstr.c_str()) != 0) {
-                       error << string_compose (_("renaming %s as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
+                       error << string_compose (_("renaming %1 as %2 failed (%3)"), oldstr, newstr, g_strerror (errno)) << endmsg;
                        return 1;
                }
        }