Skip to content

Commit

Permalink
fix(reqwest): error for status
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Sep 6, 2024
1 parent 3de3f05 commit 860ef4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/autoi18n/src/pull/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fn fetch_locales(project_id: &str) -> Result<Vec<PullLocale>, CliError> {
let url = format!("http://localhost:5000/projects/{project_id}/pull");

reqwest::blocking::get(url)?
.error_for_status()?
.json::<Vec<PullLocale>>()
.map_err(CliError::from)
}
Expand Down

0 comments on commit 860ef4d

Please sign in to comment.