mirror of
https://github.com/openai/codex.git
synced 2026-11-20 07:06:24 +00:00
chore: link doc in profile error messages (#23879)
Just updating the error message with a link to the doc
This commit is contained in:
1 parent
e6c8371e4e
commit
c1d7f4c8f8
2 files changed
+6
-2
No files matched your search
@@ -235,7 +235,7 @@ pub async fn load_config_layers_state(
|
|||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
io::ErrorKind::InvalidData,
|
io::ErrorKind::InvalidData,
|
||||||
format!(
|
format!(
|
||||||
"--profile-v2 `{active_user_profile}` cannot be used while {} contains legacy `[profiles.{active_user_profile}]` config; move those settings into {} or remove `[profiles.{active_user_profile}]`",
|
"--profile `{active_user_profile}` cannot be used while {} contains legacy `[profiles.{active_user_profile}]` config; move those settings into {} or remove `[profiles.{active_user_profile}]`. See https://developers.openai.com/codex/config-advanced#profiles for more information.",
|
||||||
base_user_file.as_path().display(),
|
base_user_file.as_path().display(),
|
||||||
active_user_file.as_path().display()
|
active_user_file.as_path().display()
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ model = "gpt-work"
|
|||||||
);
|
);
|
||||||
let message = err.to_string();
|
let message = err.to_string();
|
||||||
assert!(
|
assert!(
|
||||||
message.contains("--profile-v2 `work` cannot be used"),
|
message.contains("--profile `work` cannot be used"),
|
||||||
"unexpected error message: {message}"
|
"unexpected error message: {message}"
|
||||||
);
|
);
|
||||||
assert!(
|
assert!(
|
||||||
@@ -131,6 +131,10 @@ model = "gpt-work"
|
|||||||
message.contains("[profiles.work]"),
|
message.contains("[profiles.work]"),
|
||||||
"unexpected error message: {message}"
|
"unexpected error message: {message}"
|
||||||
);
|
);
|
||||||
|
assert!(
|
||||||
|
message.contains("https://developers.openai.com/codex/config-advanced#profiles"),
|
||||||
|
"unexpected error message: {message}"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
|||||||
Reference in new issue
Block a user