summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-12-03 10:38:32 -0500
committerMatthew Heon <mheon@redhat.com>2018-12-03 10:38:32 -0500
commit32fc865b6d0b530b74b1429775d3f1f5f24f288a (patch)
tree4a8d00e1e3acd79d2e1aa5634b17d39e40b7469d /libpod
parentb104a45f35a437593774f851b0a3b45fd692b263 (diff)
downloadpodman-32fc865b6d0b530b74b1429775d3f1f5f24f288a.tar.gz
podman-32fc865b6d0b530b74b1429775d3f1f5f24f288a.tar.bz2
podman-32fc865b6d0b530b74b1429775d3f1f5f24f288a.zip
Add better descriptions for validation errors in DB
When validating fields against the DB, report more verbosely the name of the field being validated if it fails. Specifically, add the name used in config files, so people will actually know what to change it errors happen. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/boltdb_state_internal.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/boltdb_state_internal.go b/libpod/boltdb_state_internal.go
index 8b7c3ae60..05536e069 100644
--- a/libpod/boltdb_state_internal.go
+++ b/libpod/boltdb_state_internal.go
@@ -79,23 +79,23 @@ func checkRuntimeConfig(db *bolt.DB, rt *Runtime) error {
return err
}
- if err := validateDBAgainstConfig(configBkt, "libpod root directory",
+ if err := validateDBAgainstConfig(configBkt, "libpod root directory (staticdir)",
rt.config.StaticDir, staticDirKey, ""); err != nil {
return err
}
- if err := validateDBAgainstConfig(configBkt, "libpod temporary files directory",
+ if err := validateDBAgainstConfig(configBkt, "libpod temporary files directory (tmpdir)",
rt.config.TmpDir, tmpDirKey, ""); err != nil {
return err
}
- if err := validateDBAgainstConfig(configBkt, "storage temporary directory",
+ if err := validateDBAgainstConfig(configBkt, "storage temporary directory (runroot)",
rt.config.StorageConfig.RunRoot, runRootKey,
storage.DefaultStoreOptions.RunRoot); err != nil {
return err
}
- if err := validateDBAgainstConfig(configBkt, "storage graph root directory",
+ if err := validateDBAgainstConfig(configBkt, "storage graph root directory (graphroot)",
rt.config.StorageConfig.GraphRoot, graphRootKey,
storage.DefaultStoreOptions.GraphRoot); err != nil {
return err