!348 新增微信打印ndk错误码修改

Merge pull request !348 from 单海洋/myfeature
This commit is contained in:
openharmony_ci 2024-09-07 07:50:16 +00:00 committed by Gitee
commit 5afad9a908
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -564,8 +564,8 @@ Print_ErrorCode OH_Print_StartPrintByNative(const char *printJobName,
int32_t ret =
PrintManagerClient::GetInstance()->Print(printJobNameStr, printCb, attributes, uiContent);
if (ret != PRINT_ERROR_NONE) {
PRINT_HILOGE("OH_Print start print start failed.");
return PRINT_ERROR_GENERIC_FAILURE;
PRINT_HILOGE("OH_Print start print start failed, error code : %{public}d.", ret);
return ConvertToNativeErrorCode(ret);
}
return PRINT_ERROR_NONE;
}