httpboot: show the error message for the ChildHandle

Signed-off-by: Gary Lin <glin@suse.com>
Upstream-commit-id: 0fd3c7e8518
This commit is contained in:
Gary Lin 2018-05-28 18:03:39 +08:00 committed by Peter Jones
parent 80e52895f2
commit c2f645c7cd

View File

@ -696,8 +696,10 @@ http_fetch (EFI_HANDLE image, EFI_HANDLE device,
/* Set the handle to NULL to request a new handle */
http_handle = NULL;
efi_status = service->CreateChild(service, &http_handle);
if (EFI_ERROR(efi_status))
if (EFI_ERROR(efi_status)) {
perror(L"Failed to create the ChildHandle\n");
return efi_status;
}
/* Get the http protocol */
efi_status = gBS->HandleProtocol(http_handle, &EFI_HTTP_PROTOCOL_GUID,