From acb4ffe839e87027903c8ddd569d3ef5bb51668c Mon Sep 17 00:00:00 2001 From: Dmitry Vedenko Date: Wed, 21 Feb 2024 12:04:00 +0300 Subject: [PATCH] Fixes error handling on project open --- modules/mod-cloud-audiocom/CloudProjectUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mod-cloud-audiocom/CloudProjectUtils.cpp b/modules/mod-cloud-audiocom/CloudProjectUtils.cpp index 464c339309de..e1209ac12239 100644 --- a/modules/mod-cloud-audiocom/CloudProjectUtils.cpp +++ b/modules/mod-cloud-audiocom/CloudProjectUtils.cpp @@ -73,7 +73,7 @@ bool HandleFailure(const ProjectSyncResult& result) { if ( result.Status == ProjectSyncResult::StatusCode::Succeeded || - result.Result.Code != ResponseResultCode::Conflict) + result.Result.Code == ResponseResultCode::Conflict) return false; BasicUI::ShowErrorDialog( @@ -81,6 +81,8 @@ bool HandleFailure(const ProjectSyncResult& result) BasicUI::ErrorDialogOptions {}.Log( audacity::ToWString(result.Result.Content))); + wxLogError("Failed to open cloud project: %s", result.Result.Content); + return true; }