Skip to content

Commit

Permalink
error crash
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-msft committed May 6, 2024
1 parent 71b0742 commit 9e8d600
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AppInstallerCommonCore/MSStoreDownload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ namespace AppInstaller::MSStore
auto result = SFS::SFSClient::Make(config, s_sfsClient);
if (!result)
{
AICLI_LOG(Core, Error, << "Failed to initialize SfsClient. Error code:" << result.GetCode() << " Message: " << result.GetMsg());
THROW_HR_MSG(APPINSTALLER_CLI_ERROR_SFSCLIENT_API_FAILED, "Failed to initialize SfsClient. ErrorCode: " + result.GetCode());
AICLI_LOG(Core, Error, << "Failed to initialize SfsClient. Error code: " << result.GetCode() << " Message: " << result.GetMsg());
THROW_HR_MSG(APPINSTALLER_CLI_ERROR_SFSCLIENT_API_FAILED, "Failed to initialize SfsClient. ErrorCode: %lu Message: %hs", result.GetCode(), result.GetMsg());
}
});

Expand Down Expand Up @@ -870,8 +870,8 @@ namespace AppInstaller::MSStore
auto requestResult = GetSfsClientInstance()->GetLatestAppDownloadInfo(sfsClientRequest, appContents);
if (!requestResult)
{
AICLI_LOG(Core, Error, << "Failed to call SfsClient GetLatestAppDownloadInfo. Error code:" << requestResult.GetCode() << " Message: " << requestResult.GetMsg());
THROW_HR_MSG(APPINSTALLER_CLI_ERROR_SFSCLIENT_API_FAILED, "Failed to call SfsClient GetLatestAppDownloadInfo. ErrorCode: " + requestResult.GetCode());
AICLI_LOG(Core, Error, << "Failed to call SfsClient GetLatestAppDownloadInfo. Error code: " << requestResult.GetCode() << " Message: " << requestResult.GetMsg());
THROW_HR_MSG(APPINSTALLER_CLI_ERROR_SFSCLIENT_API_FAILED, "Failed to call SfsClient GetLatestAppDownloadInfo. ErrorCode: %lu Message: %hs", requestResult.GetCode(), requestResult.GetMsg());
}
#ifndef AICLI_DISABLE_TEST_HOOKS
}
Expand Down

0 comments on commit 9e8d600

Please sign in to comment.