message: chore(rome_cli): move ending message after diagnostics
diff: @@ -116,15 +116,6 @@ pub(crate) fn format(mut session: CliSession) -> Result<(), Termination> {
  let duration = start.elapsed();
  let count = formatted.load(Ordering::Relaxed);
  - if is_check {
  - session.app.console.message(rome_console::markup! {
  - <Info>"Checked "{count}" files in "{duration}</Info>
  - });
  - } else {
  - session.app.console.message(rome_console::markup! {
  - <Info>"Formatted "{count}" files in "{duration}</Info>
  - });
  - }
  let mut has_errors = false;
  let mut file_ids = HashSet::new();
  @@ -218,6 +209,15 @@ pub(crate) fn format(mut session: CliSession) -> Result<(), Termination> {
  }
  }
  + if is_check {
  + session.app.console.message(rome_console::markup! {
  + <Info>"Checked "{count}" files in "{duration}</Info>
  + });
  + } else {
  + session.app.console.message(rome_console::markup! {
  + <Info>"Formatted "{count}" files in "{duration}</Info>
  + });
  + }
  // Formatting emitted error diagnostics, exit with a non-zero code
  if !has_errors {
  Ok(())
  