diff options
author | Michael Pratt <mpratt@google.com> | 2019-04-22 18:17:25 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-22 18:20:51 -0700 |
commit | f86c35a51ff92718e36ff6075339300be11e09b3 (patch) | |
tree | a539a750dabc61a19d47740c8b4f770f67977d97 /pkg/sentry/control | |
parent | 56927e5317151d5775366c6315f2054e0ae0e23a (diff) |
Clean up state error handling
PiperOrigin-RevId: 244773836
Change-Id: I32223f79d2314fe1ac4ddfc63004fc22ff634adf
Diffstat (limited to 'pkg/sentry/control')
-rw-r--r-- | pkg/sentry/control/state.go | 2 |
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{}) }, |