]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
httpboot: show the error message for the ChildHandle
authorGary Lin <glin@suse.com>
Mon, 28 May 2018 10:03:39 +0000 (18:03 +0800)
committerPeter Jones <pjones@redhat.com>
Fri, 24 Jul 2020 00:51:18 +0000 (20:51 -0400)
Signed-off-by: Gary Lin <glin@suse.com>
Upstream-commit-id: 0fd3c7e8518

httpboot.c

index 16dd6621f66ce5b6b93d237c4734181883b89def..3622e85867c3c67f8e56cff2061004d02d1046c6 100644 (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,