Merge "Use ErrPrintWriter when there is an error."

This commit is contained in:
TreeHugger Robot
2023-02-06 17:52:36 +00:00
committed by Android (Google) Code Review

View File

@@ -3069,7 +3069,7 @@ class PackageManagerShellCommand extends ShellCommand {
getOutPrintWriter().printf("Success: user %d is already being removed\n", userId);
return 0;
case UserManager.REMOVE_RESULT_ERROR_MAIN_USER_PERMANENT_ADMIN:
getOutPrintWriter().printf("Error: user %d is a permanent admin main user\n",
getErrPrintWriter().printf("Error: user %d is a permanent admin main user\n",
userId);
return 1;
default: