mirror of https://github.com/acidanthera/audk.git
ShellPkg: add error messages into function
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14986 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5a5eb8069c
commit
cc31ac1e40
|
@ -1163,8 +1163,15 @@ UpdateStdInStdOutStdErr(
|
|||
CalculateEfiHdrCrc(&gST->Hdr);
|
||||
|
||||
if (gST->ConIn == NULL ||gST->ConOut == NULL) {
|
||||
return (EFI_OUT_OF_RESOURCES);
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
if (Status == EFI_NOT_FOUND) {
|
||||
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SHELL_REDUNDA_REDIR), ShellInfoObject.HiiHandle);
|
||||
} else if (EFI_ERROR(Status)) {
|
||||
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SHELL_INVALID_REDIR), ShellInfoObject.HiiHandle);
|
||||
}
|
||||
|
||||
return (Status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue