From: Valeriy Kamyshniy Date: Thu, 2 Apr 2015 23:15:35 +0000 (+0300) Subject: [Summary] Adding informative message to failed file copy exception in Session::save_as. X-Git-Tag: 4.2~541 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=1f98535b5231e2ff128f08061a59ae5673f04b73 [Summary] Adding informative message to failed file copy exception in Session::save_as. [Review required] Paul Davis --- diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index c4b3876344..669517bdfb 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -4206,7 +4206,8 @@ Session::save_as (SaveAs& saveas) info << "media file copying from " << from << " to " << to << endmsg; if (!copy_file (from, to)) { - throw Glib::FileError (Glib::FileError::IO_ERROR, "copy failed"); + throw Glib::FileError (Glib::FileError::IO_ERROR, + string_compose(_("\ncopying \"%1\" failed !"), from)); } } @@ -4280,7 +4281,8 @@ Session::save_as (SaveAs& saveas) info << "attempting to copy " << from << " to " << to << endmsg; if (!copy_file (from, to)) { - throw Glib::FileError (Glib::FileError::IO_ERROR, "copy failed"); + throw Glib::FileError (Glib::FileError::IO_ERROR, + string_compose(_("\ncopying \"%1\" failed !"), from)); } } }