api types: namespace: include problematic component in error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-24 20:21:45 +02:00
parent 11ffd737e3
commit c2425132c4
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ impl BackupNamespace {
}
if !crate::PROXMOX_SAFE_ID_REGEX.is_match(&subdir) {
bail!("not a valid namespace component");
bail!("not a valid namespace component: {subdir}");
}
if !self.inner.is_empty() {