From f2336467a29cf9b5ca56f55adb2317d757cf30fa Mon Sep 17 00:00:00 2001 From: timvisee Date: Sun, 6 May 2018 16:00:04 +0200 Subject: [PATCH] Prompt 'no history' message when no history file exists --- ROADMAP.md | 2 +- cli/src/action/history.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index cc06856..47d571d 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,8 +1,8 @@ # Release 0.1 -- Create history command - History compiler flag - Lowercase error messages - Automatically get owner token, from file history when setting password +- Switch to `directories` instead of `app_dirs2`? - Allow file/directory archiving on upload - Allow unarchiving on download - Show a simplified command list when calling `ffsend` without arguments diff --git a/cli/src/action/history.rs b/cli/src/action/history.rs index 40bbc08..e6389ea 100644 --- a/cli/src/action/history.rs +++ b/cli/src/action/history.rs @@ -43,6 +43,7 @@ impl<'a> History<'a> { // Get the history path, make sure it exists let history_path = matcher_main.history(); if !history_path.is_file() { + println!("No files in history"); return Ok(()); }