diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-03-10 01:51:11 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-03-10 01:51:28 -0400 |
commit | 648864176fae3ada68cbeceaeddfc004ecd03726 (patch) | |
tree | 947d1ae4d74652669c81e0416d6596f91af81175 /src | |
parent | 46f1b7df0031efbf7ddd05aef4c486bfd1ddaa71 (diff) |
Updated documentation, made error in args clearer
Diffstat (limited to 'src')
-rw-r--r-- | src/options.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/options.rs b/src/options.rs index 654a9356..b91be73a 100644 --- a/src/options.rs +++ b/src/options.rs @@ -199,11 +199,11 @@ pub fn get_default_time_value_option( if default_time < 30000 { return Err(BottomError::InvalidArg( - "Please set your default value to be at least 30 seconds.".to_string(), + "Please set your default value to be at least 30000 milliseconds.".to_string(), )); } else if default_time as u128 > STALE_MAX_MILLISECONDS as u128 { return Err(BottomError::InvalidArg( - "Please set your default value to be at most 10 minutes.".to_string(), + format!("Please set your default value to be at most {} milliseconds.", STALE_MAX_MILLISECONDS), )); } @@ -227,11 +227,11 @@ pub fn get_time_interval_option( if time_interval < 1000 { return Err(BottomError::InvalidArg( - "Please set your time delta to be at least 1 second.".to_string(), + "Please set your time delta to be at least 1000 milliseconds.".to_string(), )); } else if time_interval > STALE_MAX_MILLISECONDS as u128 { return Err(BottomError::InvalidArg( - "Please set your time delta to be at most 10 minutes.".to_string(), + format!("Please set your time delta to be at most {} milliseconds.", STALE_MAX_MILLISECONDS), )); } |