Main file for Alias shell level 3 function.\r
\r
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved. <BR>\r
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
// delete an alias\r
//\r
Status = gEfiShellProtocol->SetAlias(Param1, NULL, TRUE, FALSE);\r
+ if (EFI_ERROR(Status)) {\r
+ if (Status == EFI_ACCESS_DENIED) {\r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD), gShellLevel3HiiHandle, L"alias"); \r
+ ShellStatus = SHELL_ACCESS_DENIED;\r
+ } else {\r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel3HiiHandle, L"alias", Status); \r
+ ShellStatus = SHELL_DEVICE_ERROR;\r
+ }\r
+ }\r
} else if (ShellCommandLineGetCount(Package) == 3) {\r
//\r
// must be adding an alias\r