Skip to content

Commit

Permalink
Fixes error handling on project open
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Feb 21, 2024
1 parent 5ef653c commit acb4ffe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/mod-cloud-audiocom/CloudProjectUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ 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(
{}, XO("Error"), XO("Failed to open cloud project"), {},
BasicUI::ErrorDialogOptions {}.Log(
audacity::ToWString(result.Result.Content)));

wxLogError("Failed to open cloud project: %s", result.Result.Content);

return true;
}

Expand Down

0 comments on commit acb4ffe

Please sign in to comment.