diff --git a/packages/autoi18n/src/pull/mod.rs b/packages/autoi18n/src/pull/mod.rs index 7705ad5..cad1202 100644 --- a/packages/autoi18n/src/pull/mod.rs +++ b/packages/autoi18n/src/pull/mod.rs @@ -16,6 +16,7 @@ fn fetch_locales(project_id: &str) -> Result, CliError> { let url = format!("http://localhost:5000/projects/{project_id}/pull"); reqwest::blocking::get(url)? + .error_for_status()? .json::>() .map_err(CliError::from) }