Skip to content

Commit

Permalink
refactor: update chat_requirements error message
Browse files Browse the repository at this point in the history
  • Loading branch information
xsigoking committed Apr 18, 2024
1 parent 01caf88 commit 44ecdaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,7 @@ impl Server {
let data: Value = res.json().await?;
let token = match data["token"].as_str() {
Some(v) => v.to_string(),
None => bail!(
r#"Failed to check the chat requirements, {data}. See https://github.com/xsigoking/chatgpt-free-api/issues/9 for more details."#
),
None => bail!("Invalid data, {data}"),
};
Ok((oai_device_id, token))
}
Expand Down

0 comments on commit 44ecdaf

Please sign in to comment.