Implement extra-config option
This commit is contained in:
@@ -25,6 +25,7 @@ pub enum SandboxError {
|
||||
ConflictingEnvKey(String),
|
||||
InvalidEnvEntry(String),
|
||||
UnknownConfigKey(String),
|
||||
NestedExtraConfig(PathBuf),
|
||||
ConfigPathNotAbsolute(PathBuf),
|
||||
InvalidBwrapArg(String),
|
||||
InvalidBindSpec(String),
|
||||
@@ -75,6 +76,11 @@ impl std::fmt::Display for SandboxError {
|
||||
write!(f, "invalid env entry (expected KEY or KEY=VALUE): {raw:?}")
|
||||
}
|
||||
Self::UnknownConfigKey(key) => write!(f, "unknown config key: {key}"),
|
||||
Self::NestedExtraConfig(p) => write!(
|
||||
f,
|
||||
"extra-config file '{}' sets its own extra-config (nesting not supported)",
|
||||
p.display()
|
||||
),
|
||||
Self::ConfigPathNotAbsolute(p) => {
|
||||
write!(f, "config path is not absolute: {}", p.display())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user