Skip to content

Commit

Permalink
feat(cli): show doc path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jul 23, 2024
1 parent d2b6dd2 commit 62067b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ impl AmberCompiler {
}
let filename = dep_path.file_stem().unwrap().to_string_lossy();
let path = format!("{dir_path}/{filename}.md");
Message::new_err_msg(format!("File generated at `{dir_path}`."))
.show();
Message::new_err_msg(format!("File generated at `{path}`."))
.show();
let mut file = File::create(path).unwrap();
file.write_all(document.as_bytes()).unwrap();
}
Expand Down

0 comments on commit 62067b5

Please sign in to comment.