File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ impl GitRepo {
122
122
if download_dir. exists ( ) {
123
123
let actual_hash = format ! ( "{:016x}" , hash_dir( & download_dir) ) ;
124
124
if actual_hash == self . content_hash {
125
- println ! ( "[FRESH] {}" , download_dir. display( ) ) ;
125
+ eprintln ! ( "[FRESH] {}" , download_dir. display( ) ) ;
126
126
return ;
127
127
} else {
128
- println ! (
128
+ eprintln ! (
129
129
"Mismatched content hash for {download_dir}: {actual_hash} != {content_hash}. Downloading again." ,
130
130
download_dir = download_dir. display( ) ,
131
131
content_hash = self . content_hash,
@@ -150,7 +150,7 @@ impl GitRepo {
150
150
151
151
let actual_hash = format ! ( "{:016x}" , hash_dir( & download_dir) ) ;
152
152
if actual_hash != self . content_hash {
153
- println ! (
153
+ eprintln ! (
154
154
"Download of {download_dir} failed with mismatched content hash: {actual_hash} != {content_hash}" ,
155
155
download_dir = download_dir. display( ) ,
156
156
content_hash = self . content_hash,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ impl Compiler {
47
47
self . runner = vec ! [ "wine" . to_owned( ) ] ;
48
48
}
49
49
_ => {
50
- println ! ( "Unknown non-native platform" ) ;
50
+ eprintln ! ( "Unknown non-native platform" ) ;
51
51
}
52
52
}
53
53
}
@@ -209,14 +209,14 @@ pub(crate) fn spawn_and_wait(mut cmd: Command) {
209
209
pub ( crate ) fn retry_spawn_and_wait ( tries : u64 , mut cmd : Command ) {
210
210
for i in 1 ..tries + 1 {
211
211
if i != 1 {
212
- println ! ( "Command failed. Attempt {i}/{tries}:" ) ;
212
+ eprintln ! ( "Command failed. Attempt {i}/{tries}:" ) ;
213
213
}
214
214
if cmd. spawn ( ) . unwrap ( ) . wait ( ) . unwrap ( ) . success ( ) {
215
215
return ;
216
216
}
217
217
std:: thread:: sleep ( std:: time:: Duration :: from_secs ( i * 5 ) ) ;
218
218
}
219
- println ! ( "The command has failed after {tries} attempts." ) ;
219
+ eprintln ! ( "The command has failed after {tries} attempts." ) ;
220
220
process:: exit ( 1 ) ;
221
221
}
222
222
You can’t perform that action at this time.
0 commit comments