summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/control/state.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-04-22 18:17:25 -0700
committerShentubot <shentubot@google.com>2019-04-22 18:20:51 -0700
commitf86c35a51ff92718e36ff6075339300be11e09b3 (patch)
treea539a750dabc61a19d47740c8b4f770f67977d97 /pkg/sentry/control/state.go
parent56927e5317151d5775366c6315f2054e0ae0e23a (diff)
Clean up state error handling
PiperOrigin-RevId: 244773836 Change-Id: I32223f79d2314fe1ac4ddfc63004fc22ff634adf
Diffstat (limited to 'pkg/sentry/control/state.go')
-rw-r--r--pkg/sentry/control/state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/control/state.go b/pkg/sentry/control/state.go
index 0a480c84a..b6bbf69fa 100644
--- a/pkg/sentry/control/state.go
+++ b/pkg/sentry/control/state.go
@@ -64,7 +64,7 @@ func (s *State) Save(o *SaveOpts, _ *struct{}) error {
log.Infof("Save succeeded: exiting...")
} else {
log.Warningf("Save failed: exiting...")
- s.Kernel.SetExitError(err)
+ s.Kernel.SetSaveError(err)
}
s.Kernel.Kill(kernel.ExitStatus{})
},