api types: namespace: fix typo in error message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-16 09:50:10 +02:00
parent e3ea577011
commit 63e98028cc
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ impl BackupNamespace {
let depth = self.depth(); let depth = self.depth();
// check for greater equal to account for the to be added subdir // check for greater equal to account for the to be added subdir
if depth >= MAX_NAMESPACE_DEPTH { if depth >= MAX_NAMESPACE_DEPTH {
bail!("namespace to deep, {depth} >= max {MAX_NAMESPACE_DEPTH}"); bail!("namespace too deep, {depth} >= max {MAX_NAMESPACE_DEPTH}");
} }
if self.len + subdir.len() + 1 > MAX_BACKUP_NAMESPACE_LENGTH { if self.len + subdir.len() + 1 > MAX_BACKUP_NAMESPACE_LENGTH {