cli/status: use eprintln instead of panic

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-05 22:13:25 +03:00
parent f9d2761700
commit 1753daa5a0
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -3,7 +3,7 @@ use crate::CurrentTaskInfo;
pub fn execute(current_task_info: Option<CurrentTaskInfo>) { pub fn execute(current_task_info: Option<CurrentTaskInfo>) {
match current_task_info { match current_task_info {
None => { None => {
panic!("You don't have an active task."); eprintln!("You don't have an active task.");
} }
Some(info) => { Some(info) => {
println!("Information about your current task:"); println!("Information about your current task:");