Use ErrPrintWriter when there is an error.

Change-Id: Id7bcf6e367c9e90c4d212e9c53cc7a2232e1378d
This commit is contained in:
Yasin Kilicdere
2023-02-06 15:19:21 +00:00
parent 4c4e25e092
commit ab219b6830

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: