From b3d39444518c73e9c942c0e5aa4aa8ecb762ffca Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 18 May 2023 18:54:46 +0200 Subject: [PATCH] Add session-archive error messages --- libs/ardour/session_state.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 4e02d2936a..654131876c 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -5566,6 +5566,7 @@ Session::archive_session (const std::string& dest, Progress* progress) { if (dest.empty () || name.empty ()) { + error << _("Cannot archive session: invalid destination path/name") << endmsg; return -1; } @@ -5592,6 +5593,7 @@ Session::archive_session (const std::string& dest, } } if (!ok) { + error << _("Cannot archive: session media-search path does not include current session-path.") << endmsg; return -1; } @@ -5613,6 +5615,7 @@ Session::archive_session (const std::string& dest, if (!_session_dir->create()) { (*_session_dir) = old_sd; remove_directory (to_dir); + error << string_compose(_("Session archive failed to create SessionDirectory `%1'"), to_dir) << endmsg; return -1; }