diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-11-02 23:40:50 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-11-02 23:40:50 +0100 |
| commit | f169a04da325b6467335812a53b315f1ecc8c7ad (patch) | |
| tree | 658ad93f339ade36a992643bdff91bf18ec0c347 /mumctl/src/main.rs | |
| parent | d72b0fe5862a99d9ce1a0ef37938f4517de36ed7 (diff) | |
| download | mum-f169a04da325b6467335812a53b315f1ecc8c7ad.tar.gz | |
add warning without config
Diffstat (limited to 'mumctl/src/main.rs')
| -rw-r--r-- | mumctl/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs index 50ccfe0..9d38aa0 100644 --- a/mumctl/src/main.rs +++ b/mumctl/src/main.rs @@ -122,6 +122,9 @@ fn main() { .as_ref() .map(|e| e.servers.as_ref().map(|e| e.clone()).unwrap_or(Vec::new())) .unwrap_or(Vec::new()); + if servers.len() == 0 { + println!("{} No servers in config", "warning:".yellow()); + } for (server, response) in servers .into_iter() .map(|e| { |
