Skip to content

Commit 6e5c1cc

Browse files
Ludo GalabruLudo Galabru
authored andcommitted
chore: polish cli experience
1 parent 5b08e8a commit 6e5c1cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/frontend/cli.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ pub fn main() {
520520
);
521521
let mut buffer = String::new();
522522
std::io::stdin().read_line(&mut buffer).unwrap();
523-
if !buffer.starts_with("Y") {
523+
if !buffer.starts_with("Y") || !buffer.starts_with("") {
524524
println!("Deployment aborted");
525525
std::process::exit(1);
526526
}
@@ -665,7 +665,7 @@ pub fn main() {
665665
let deployment = match res {
666666
Ok(deployment) => deployment,
667667
Err(e) => {
668-
println!("error: {}", e);
668+
println!("{}: {}", red!("error"), e);
669669
process::exit(1);
670670
}
671671
};
@@ -802,7 +802,7 @@ pub fn main() {
802802
let deployment = match res {
803803
Ok(deployment) => deployment,
804804
Err(e) => {
805-
println!("error: {}", e);
805+
println!("{}: {}", red!("error"), e);
806806
process::exit(1);
807807
}
808808
};
@@ -1007,7 +1007,7 @@ pub fn main() {
10071007
let deployment = match res {
10081008
Ok(deployment) => deployment,
10091009
Err(e) => {
1010-
println!("error: {}", e);
1010+
println!("{}: {}", red!("error"), e);
10111011
process::exit(1);
10121012
}
10131013
};
@@ -1090,7 +1090,7 @@ pub fn main() {
10901090
let deployment = match res {
10911091
Ok(deployment) => deployment,
10921092
Err(e) => {
1093-
println!("error: {}", e);
1093+
println!("{}: {}", red!("error"), e);
10941094
process::exit(1);
10951095
}
10961096
};

0 commit comments

Comments
 (0)