- switch(Status){\r
- default:\r
- ShellStatus = SHELL_INVALID_PARAMETER;\r
- case EFI_SECURITY_VIOLATION:\r
- ShellStatus = SHELL_SECURITY_VIOLATION;\r
- case EFI_WRITE_PROTECTED:\r
- ShellStatus = SHELL_WRITE_PROTECTED;\r
- case EFI_OUT_OF_RESOURCES:\r
- ShellStatus = SHELL_OUT_OF_RESOURCES;\r
- case EFI_DEVICE_ERROR:\r
- ShellStatus = SHELL_DEVICE_ERROR;\r
- case EFI_ACCESS_DENIED:\r
- ShellStatus = SHELL_ACCESS_DENIED;\r
- } // switch\r
- } else {\r
- ShellPrintEx(-1, -1, L"%s", HiiResultOk);\r
+ if (EFI_ERROR(Status)) {\r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, Status);\r
+ //\r
+ // move failed\r
+ //\r
+ switch(Status){\r
+ default:\r
+ ShellStatus = SHELL_INVALID_PARAMETER;\r
+ case EFI_SECURITY_VIOLATION:\r
+ ShellStatus = SHELL_SECURITY_VIOLATION;\r
+ case EFI_WRITE_PROTECTED:\r
+ ShellStatus = SHELL_WRITE_PROTECTED;\r
+ case EFI_OUT_OF_RESOURCES:\r
+ ShellStatus = SHELL_OUT_OF_RESOURCES;\r
+ case EFI_DEVICE_ERROR:\r
+ ShellStatus = SHELL_DEVICE_ERROR;\r
+ case EFI_ACCESS_DENIED:\r
+ ShellStatus = SHELL_ACCESS_DENIED;\r
+ } // switch\r
+ } else {\r
+ ShellPrintEx(-1, -1, L"%s", HiiResultOk);\r
+ }\r