diff options
| author | Eskil <eskilq@kth.se> | 2020-11-03 22:02:32 +0100 |
|---|---|---|
| committer | Eskil <eskilq@kth.se> | 2020-11-03 22:02:32 +0100 |
| commit | d6496cb0f6abba855b04338fa8bc5aaa89487c29 (patch) | |
| tree | 929f5c18babe5bc27676c88aae6b9d3795b09917 /mumlib/src/error.rs | |
| parent | 831182b69eb1bbfedfad1288b73a822241f18d25 (diff) | |
| parent | 972c11fe66c17728981ec57796c78fb70c7bd180 (diff) | |
| download | mum-d6496cb0f6abba855b04338fa8bc5aaa89487c29.tar.gz | |
Merge branch 'audio-volume' into 'main'
Refactor of config and add support for changing global output volume and individual user's volume
See merge request gustav/mum!28
Diffstat (limited to 'mumlib/src/error.rs')
| -rw-r--r-- | mumlib/src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mumlib/src/error.rs b/mumlib/src/error.rs index c6d9255..1e79b9c 100644 --- a/mumlib/src/error.rs +++ b/mumlib/src/error.rs @@ -10,6 +10,7 @@ pub enum Error { AlreadyConnectedError, ChannelIdentifierError(String, ChannelIdentifierError), InvalidServerAddrError(String, u16), + InvalidUsernameError(String), } impl Display for Error { @@ -21,6 +22,7 @@ impl Display for Error { Error::InvalidServerAddrError(addr, port) => { write!(f, "Invalid server address: {}: {}", addr, port) } + Error::InvalidUsernameError(username) => write!(f, "Invalid username: {}", username), } } } |
