Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ fn looks_like_user_error(err: &anyhow::Error) -> bool {
fn print_error(err: &anyhow::Error, code: ExitCode, missing_credential: bool) {
eprintln!("error: {err}");
if code == ExitCode::Auth && !missing_credential {
eprintln!("Your credentials may be expired or invalid. Re-authenticate with `bt auth login`, or run `bt auth profiles` and `bt status` to check profile status.");
eprintln!("Your credentials may be expired or invalid. For OAuth profiles, try `bt auth refresh --profile <NAME>`; if refresh fails, re-run `bt auth login --oauth --profile <NAME>`. Run `bt auth profiles` and `bt status` to inspect profile status.");
}
if code == ExitCode::Error {
eprintln!("If this seems like a bug, file an issue at https://github.com/braintrustdata/bt/issues/new and include `bt --version`, `bt status --json`, and the command you ran.");
Expand Down
Loading