Commit 64e4f67e43
Unregistered key
Layout: unified · split
src/commands.rs +3
| @@ -515,6 +515,9 @@ fn iamb_open(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult { | |||
| 515 | fn iamb_logout(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult { | 515 | fn iamb_logout(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult { |
| 516 | let args = desc.arg.strings()?; | 516 | let args = desc.arg.strings()?; |
| 517 | 517 | ||
| 518 | if args.is_empty() { | ||
| 519 | return Result::Err(CommandError::Error("Missing username".to_string())); | ||
| 520 | } | ||
| 518 | if args.len() != 1 { | 521 | if args.len() != 1 { |
| 519 | return Result::Err(CommandError::InvalidArgument); | 522 | return Result::Err(CommandError::InvalidArgument); |
| 520 | } | 523 | } |