mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
[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
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue