Remove run anyway tip (#7782)

This commit is contained in:
Anton-4 2025-05-12 17:51:58 +02:00 committed by GitHub
parent f479d6227e
commit a27feb309a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 43 deletions

View file

@ -17,7 +17,6 @@ use roc_reporting::{
report::{RenderTarget, DEFAULT_PALETTE},
};
use roc_target::{Architecture, Target};
use std::ffi::OsStr;
use std::ops::Deref;
use std::{
path::{Path, PathBuf},
@ -651,8 +650,6 @@ impl<'a> BuildFileError<'a> {
pub fn handle_error_module(
mut module: roc_load::LoadedModule,
total_time: std::time::Duration,
filename: &OsStr,
print_run_anyway_hint: bool,
) -> std::io::Result<i32> {
debug_assert!(module.total_problems() > 0);
@ -660,18 +657,6 @@ pub fn handle_error_module(
problems.print_error_warning_count(total_time);
if print_run_anyway_hint {
// If you're running "main.roc" then you can just do `roc run`
// to re-run the program.
print!(".\n\nYou can run the program anyway with \x1B[32mroc run");
if filename != DEFAULT_ROC_FILENAME {
print!(" {}", &filename.to_string_lossy());
}
println!("\x1B[39m");
}
Ok(problems.exit_code())
}