Skip to content

Commit 643d068

Browse files
committed
remove ERROR:, when there are expected errors in the output
1 parent ff915f2 commit 643d068

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ pub fn incremental_build(
330330
pb.finish();
331331
}
332332

333-
log::error!("Could not parse source files: {}", &err);
333+
println!("Could not parse source files: {}", &err);
334334
return Err(IncrementalBuildError::SourceFileParseError);
335335
}
336336
}
@@ -405,7 +405,7 @@ pub fn incremental_build(
405405
pb.finish();
406406
if !compile_errors.is_empty() {
407407
if helpers::contains_ascii_characters(&compile_warnings) {
408-
log::error!("{}", &compile_warnings);
408+
println!("{}", &compile_warnings);
409409
}
410410
if show_progress {
411411
println!(
@@ -417,7 +417,7 @@ pub fn incremental_build(
417417
default_timing.unwrap_or(compile_duration).as_secs_f64()
418418
);
419419
}
420-
log::error!("{}", &compile_errors);
420+
println!("{}", &compile_errors);
421421
// mark the original files as dirty again, because we didn't complete a full build
422422
for (module_name, module) in build_state.modules.iter_mut() {
423423
if tracked_dirty_modules.contains(module_name) {

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn main() -> Result<()> {
114114

115115
match lock::get(&folder) {
116116
lock::Lock::Error(ref e) => {
117-
log::error!("Could not start Rewatch: {e}");
117+
println!("Could not start Rewatch: {e}");
118118
std::process::exit(1)
119119
}
120120
lock::Lock::Aquired(_) => match command {
@@ -130,7 +130,7 @@ fn main() -> Result<()> {
130130
args.dev,
131131
) {
132132
Err(e) => {
133-
log::error!("{e}");
133+
println!("{e}");
134134
std::process::exit(1)
135135
}
136136
Ok(_) => {

src/watcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn start(
282282
)
283283
.await
284284
{
285-
log::error!("{:?}", e)
285+
println!("{:?}", e)
286286
}
287287
})
288288
}

0 commit comments

Comments
 (0)