mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
fix: include Error in log message (#7955)
This addresses post-merge feedback from https://github.com/openai/codex/pull/7856.
This commit is contained in:
@@ -425,14 +425,15 @@ impl SandboxPolicy {
|
|||||||
&& let Some(tmpdir) = std::env::var_os("TMPDIR")
|
&& let Some(tmpdir) = std::env::var_os("TMPDIR")
|
||||||
&& !tmpdir.is_empty()
|
&& !tmpdir.is_empty()
|
||||||
{
|
{
|
||||||
if let Ok(tmpdir_path) =
|
match AbsolutePathBuf::from_absolute_path(PathBuf::from(&tmpdir)) {
|
||||||
AbsolutePathBuf::from_absolute_path(PathBuf::from(&tmpdir))
|
Ok(tmpdir_path) => {
|
||||||
{
|
roots.push(tmpdir_path);
|
||||||
roots.push(tmpdir_path);
|
}
|
||||||
} else {
|
Err(e) => {
|
||||||
error!(
|
error!(
|
||||||
"Ignoring invalid TMPDIR value {tmpdir:?} for sandbox writable root",
|
"Ignoring invalid TMPDIR value {tmpdir:?} for sandbox writable root: {e}",
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user