Fix return value for 'rkt prepare'.

Also fix an error message output.
This commit is contained in:
Yifan Gu
2015-03-08 22:36:23 -07:00
parent 3746042943
commit 7cb0d1126e
+2 -2
View File
@@ -69,7 +69,7 @@ func runPrepare(args []string) (exit int) {
ds, err := cas.NewStore(globalFlags.Dir)
if err != nil {
stderr("prepare: cannot open store: %v")
stderr("prepare: cannot open store: %v", err)
return 1
}
ks := getKeystore()
@@ -115,5 +115,5 @@ func runPrepare(args []string) (exit int) {
os.Stdout = origStdout // restore output in case of --quiet
stdout("%s", c.uuid.String())
return 1
return 0
}