fix(cli): use stderr instead of stdout
This commit is contained in:
parent
22ab9479b0
commit
a4e896ef05
2 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ pub fn main() -> Result<()> {
|
||||||
{
|
{
|
||||||
models_mod_path.pop();
|
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)?;
|
let models = parse_models::parse_models_from_module(&models_mod_path)?;
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"Found and parsed a grand total of {} sqlxgentools compatible models.",
|
"Found and parsed a grand total of {} sqlxgentools compatible models.",
|
||||||
|
|
|
||||||
|
|
@ -270,7 +270,7 @@ fn parse_models_from_module_inner(module_path: &Path) -> Result<Vec<Model>> {
|
||||||
let mut models: Vec<Model> = vec![];
|
let mut models: Vec<Model> = vec![];
|
||||||
|
|
||||||
if module_path.is_file() {
|
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)?);
|
models.extend(parse_models(module_path)?);
|
||||||
return Ok(models);
|
return Ok(models);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue