Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 72f4678

Browse files
committed
Return message if -- release channel unrecognized
1 parent 44e54ea commit 72f4678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/playbot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Playbot {
104104
Some("--stable") => { channel = ReleaseChannel::Stable },
105105
Some("--beta") => { channel = ReleaseChannel::Beta },
106106
Some("--nightly") => { channel = ReleaseChannel::Nightly },
107-
_ => (),
107+
_ => return Ok(String::from("unrecognized release channel")),
108108
}
109109
code = parts.next().unwrap_or("");
110110
}

0 commit comments

Comments
 (0)