summaryrefslogtreecommitdiff
path: root/cmds/pm
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2017-06-07 17:34:59 +0100
committerTony Mak <tonymak@google.com>2017-06-08 20:33:14 +0000
commit787703431b4986eca1c308dd722fb346a597c3dd (patch)
treeb81ce20fd36523b1c639e280e6210379c031084d /cmds/pm
parent48a765945449c240b1aea0be40522a14b35a642e (diff)
Return exit code 0 when the command run successfully
Fix: 62410589 Test: run the pm create-user command and check the exit code Change-Id: I5bde1f886860cd8edb869ebaa8f6e5376882f03b
Diffstat (limited to 'cmds/pm')
-rw-r--r--cmds/pm/src/com/android/commands/pm/Pm.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java
index d71573f7ca50..9813cb1631ce 100644
--- a/cmds/pm/src/com/android/commands/pm/Pm.java
+++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -1033,7 +1033,7 @@ public final class Pm {
if (info != null) {
System.out.println("Success: created user id " + info.id);
- return 1;
+ return 0;
} else {
System.err.println("Error: couldn't create User.");
return 1;