fix(cli): use stderr instead of stdout

This commit is contained in:
Matthieu Bessat 2026-03-30 21:56:12 +02:00
commit a4e896ef05
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ pub fn main() -> Result<()> {
{
models_mod_path.pop();
}
eprintln!("Found models in project, parsing models");
eprintln!("Found models in project, parsing models");
let models = parse_models::parse_models_from_module(&models_mod_path)?;
eprintln!(
"Found and parsed a grand total of {} sqlxgentools compatible models.",

View file

@ -270,7 +270,7 @@ fn parse_models_from_module_inner(module_path: &Path) -> Result<Vec<Model>> {
let mut models: Vec<Model> = vec![];
if module_path.is_file() {
println!("Looking for models to parse from path {:?}.", module_path);
eprintln!("Looking for models to parse from path {:?}.", module_path);
models.extend(parse_models(module_path)?);
return Ok(models);
}