13
0

[Summary] Adding informative message to failed file copy exception in Session::save_as.

[Review required] Paul Davis
This commit is contained in:
Valeriy Kamyshniy 2015-04-03 02:15:35 +03:00 committed by Paul Davis
parent 445d742af1
commit 1f98535b52

View File

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