[Summary] Adding informative message to failed file copy exception in Session::save_as.
[Review required] Paul Davis
This commit is contained in:
parent
445d742af1
commit
1f98535b52
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user