Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: translate error messages in hotmart_login and hotmart_check_session to English for consistency

Tonho83a94c6d378f
diff --git a/src-tauri/src/commands/auth.rs b/src-tauri/src/commands/auth.rs
index 7f981eb0..257a6d61 100644
--- a/src-tauri/src/commands/auth.rs
+++ b/src-tauri/src/commands/auth.rs
@@ -34,8 +34,8 @@ pub async fn hotmart_login(
Ok(response_email)
}
Err(e) => {
- tracing::error!("Falha no login Hotmart: {}", e);
- Err(format!("Falha no login: {}", e))
+ tracing::error!("Hotmart login failed: {}", e);
+ Err(format!("Login failed: {}", e))
}
}
}
@@ -82,7 +82,7 @@ pub async fn hotmart_check_session(
.form(&[("token", &token)])
.send()
.await
- .map_err(|e| format!("Erro na validação: {}", e))?;
+ .map_err(|e| format!("Validation error: {}", e))?;
if resp.status().is_success() {
*state.session_validated_at.lock().await = Some(Instant::now());