Skip to content

Commit 2f348eb

Browse files
committed
feat: elegant exit
1 parent 8b31e09 commit 2f348eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ fn main() {
2323

2424
let commit_type = match selection {
2525
Some(index) => &commit_types[index],
26-
None => panic!("Must select a commit type!"),
26+
None => {
27+
println!("Must select a commit type!");
28+
return ();
29+
}
2730
};
2831

2932
let scope: String = Input::new()

0 commit comments

Comments
 (0)