diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs index 3105f9a..3b0203d 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -10,18 +10,18 @@ fn main() { match command { "create" => { - create(options).unwrap(); + create(options).expect("Failed executing Create action."); } "update" => { - update(options).unwrap(); + update(options).expect("Failed executing Update action."); } "shift" => { let file_path = args[2].as_str(); let new_cursor: usize = args[3].as_str().parse().expect("Invalid cursor."); - shift(options, file_path, new_cursor).unwrap(); + shift(options, file_path, new_cursor).expect("Failed executing Shift actions."); } - _ => println!("Unknown command: {}", command), + _ => panic!("Unknown command: {}", command), } } |
