summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/control
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/control')
-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{})
},