From 1f98535b5231e2ff128f08061a59ae5673f04b73 Mon Sep 17 00:00:00 2001 From: Valeriy Kamyshniy Date: Fri, 3 Apr 2015 02:15:35 +0300 Subject: [PATCH] [Summary] Adding informative message to failed file copy exception in Session::save_as. [Review required] Paul Davis --- libs/ardour/session_state.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); } } }