summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/kernel.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-26 21:26:00 +0000
committergVisor bot <gvisor-bot@google.com>2021-01-26 21:26:00 +0000
commit7edc1ce12f25e579d7b6f8205f70b823ed050aed (patch)
treedee68721d0c332c0970bfde6ba5456dd934a305c /pkg/sentry/kernel/kernel.go
parentfcb89d2d2954a0a1c6d5c6087f1de3af9eff77af (diff)
parentce39f82985b95972c545c941be2133b607b4440c (diff)
Merge release-20210112.0-96-gce39f8298 (automated)
Diffstat (limited to 'pkg/sentry/kernel/kernel.go')
-rw-r--r--pkg/sentry/kernel/kernel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/kernel/kernel.go b/pkg/sentry/kernel/kernel.go
index 303ae8056..ef4e934a1 100644
--- a/pkg/sentry/kernel/kernel.go
+++ b/pkg/sentry/kernel/kernel.go
@@ -593,8 +593,8 @@ func (k *Kernel) flushWritesToFiles(ctx context.Context) error {
// Wrap this error in ErrSaveRejection so that it will trigger a save
// error, rather than a panic. This also allows us to distinguish Fsync
// errors from state file errors in state.Save.
- return fs.ErrSaveRejection{
- Err: fmt.Errorf("%q was not sufficiently synced: %v", name, err),
+ return &fs.ErrSaveRejection{
+ Err: fmt.Errorf("%q was not sufficiently synced: %w", name, err),
}
}
return nil