]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/config: print error when keyfile cannot be read
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 6 Jan 2026 23:04:59 +0000 (18:04 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 10 Feb 2026 17:59:51 +0000 (12:59 -0500)
Fixes: 91e8da14312b62f07d68b3aebca3bfb00a9cfc6e
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/common/config.cc

index f320fbd1cbccbd064a8d7c3ad86e83c403c96dae..76293e61d658714d2720fa1da9cd58cf031fd8ed 100644 (file)
@@ -708,6 +708,8 @@ int md_config_t::parse_argv(ConfigValues& values,
       if (r >= 0) {
        string k(bl.c_str(), bl.length());
        set_val_or_die(values, tracker, "key", k.c_str());
+      } else {
+        std::cerr << "cannot read keyfile: " << cpp_strerror(r) << std::endl;
       }
     }
     else if (ceph_argparse_witharg(args, i, &val, "--keyring", "-k", (char*)NULL)) {