summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-29 11:31:39 -0400
committerGitHub <noreply@github.com>2022-04-29 11:31:39 -0400
commit95ff349de22e01eaa76cfc19891cc37952789b82 (patch)
treeddfaeb501528c01a93624e357774116f4819f210 /libpod/runtime_ctr.go
parent73836e0c6a22d919dd8be297bafd137f1bd8ec9e (diff)
parente6557bf0a291f4462081e50461b1b9b8715d1da3 (diff)
downloadpodman-95ff349de22e01eaa76cfc19891cc37952789b82.tar.gz
podman-95ff349de22e01eaa76cfc19891cc37952789b82.tar.bz2
podman-95ff349de22e01eaa76cfc19891cc37952789b82.zip
Merge pull request #14031 from Luap99/errcheck
enable errcheck linter
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index fd3ffd199..df7174ac6 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -513,7 +513,9 @@ func (r *Runtime) setupContainer(ctx context.Context, ctr *Container) (_ *Contai
case define.NoLogging, define.PassthroughLogging:
break
case define.JournaldLogging:
- ctr.initializeJournal(ctx)
+ if err := ctr.initializeJournal(ctx); err != nil {
+ return nil, fmt.Errorf("failed to initialize journal: %w", err)
+ }
default:
if ctr.config.LogPath == "" {
ctr.config.LogPath = filepath.Join(ctr.config.StaticDir, "ctr.log")