all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-backup 1/2] group: lock: use group path instead of debug for error message
@ 2026-04-28 11:02 Fabian Grünbichler
  2026-04-28 11:02 ` [PATCH proxmox-backup 2/2] group: lock: inline error instead of using context Fabian Grünbichler
  2026-04-28 13:45 ` applied: [PATCH proxmox-backup 1/2] group: lock: use group path instead of debug for error message Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Fabian Grünbichler @ 2026-04-28 11:02 UTC (permalink / raw)
  To: pbs-devel

this changes the error from:

  Error: while creating locked backup group 'BackupGroup { store: "store", ns: BackupNamespace { inner: ["namespace"], len: 6 }, group: BackupGroup { ty: Host, id: "group" } }'

to

  Error: while creating locked backup group "/store/pbs/ns/namespace/host/group"'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
 pbs-datastore/src/datastore.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pbs-datastore/src/datastore.rs b/pbs-datastore/src/datastore.rs
index 292c56bff..6fbd18aa0 100644
--- a/pbs-datastore/src/datastore.rs
+++ b/pbs-datastore/src/datastore.rs
@@ -1826,7 +1826,7 @@ impl DataStore {
                 let _ = std::fs::remove_dir(&full_path);
             }
             BackupGroupOpError::Soft(err.context(format!(
-                "while {} locked backup group '{backup_group:?}'",
+                "while {} locked backup group {full_path:?}",
                 if created { "creating new" } else { "creating" },
             )))
         })?;
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-28 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 11:02 [PATCH proxmox-backup 1/2] group: lock: use group path instead of debug for error message Fabian Grünbichler
2026-04-28 11:02 ` [PATCH proxmox-backup 2/2] group: lock: inline error instead of using context Fabian Grünbichler
2026-04-28 13:45 ` applied: [PATCH proxmox-backup 1/2] group: lock: use group path instead of debug for error message Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal