mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-23 22:48:08 +00:00
api types: namespace: include problematic component in error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0af9b69146
commit
1682d9ae0d
@ -632,7 +632,7 @@ impl BackupNamespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !crate::PROXMOX_SAFE_ID_REGEX.is_match(&subdir) {
|
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() {
|
if !self.inner.is_empty() {
|
||||||
|
Loading…
Reference in New Issue
Block a user