]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootClient.c
NetworkPkg/HttpBootDxe: Avoid to corrupt HttpBootDxe setup screen.
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootClient.c
index 5c871717da6288706fc241f063a2072752346288..15e0ab9d698eefdccda425aaa046d8df81d6abc0 100644 (file)
@@ -238,6 +238,11 @@ HttpBootDhcp4ExtractUriInfo (
   Status = HttpBootCheckUriScheme (Private->BootFileUri);\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "HttpBootDhcp4ExtractUriInfo: %r.\n", Status));\r
+    if (Status == EFI_INVALID_PARAMETER) {\r
+      AsciiPrint ("\n  Error: Invalid URI address.\n");\r
+    } else if (Status == EFI_ACCESS_DENIED) {\r
+      AsciiPrint ("\n  Error: Access forbidden, only HTTPS connection is allowed.\n");\r
+    }\r
     return Status;\r
   }\r
 \r
@@ -373,6 +378,11 @@ HttpBootDhcp6ExtractUriInfo (
   Status = HttpBootCheckUriScheme (Private->BootFileUri);\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "HttpBootDhcp6ExtractUriInfo: %r.\n", Status));\r
+    if (Status == EFI_INVALID_PARAMETER) {\r
+      AsciiPrint ("\n  Error: Invalid URI address.\n");\r
+    } else if (Status == EFI_ACCESS_DENIED) {\r
+      AsciiPrint ("\n  Error: Access forbidden, only HTTPS connection is allowed.\n");\r
+    }\r
     return Status;\r
   }\r
 \r