diff options
author | Vitaly Takmazov | 2020-10-19 09:41:10 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-10-19 09:41:10 +0300 |
commit | ee1664e66746fac7f8870122af25f027cf80fe6d (patch) | |
tree | ae8d745b93f8eb4e4c8607eb4cffd48741f82d62 | |
parent | f65f8a63587e0f42e1d8843b30ff15c8f74e3f86 (diff) |
CommandsManager: handle recommendation error
-rw-r--r-- | src/main/java/com/juick/CommandsManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/CommandsManager.java b/src/main/java/com/juick/CommandsManager.java index 3795e2b6..e2a50444 100644 --- a/src/main/java/com/juick/CommandsManager.java +++ b/src/main/java/com/juick/CommandsManager.java @@ -325,6 +325,8 @@ public class CommandsManager { return CommandResult.fromString("Message is added to your recommendations"); case Deleted: return CommandResult.fromString("Message deleted from your recommendations."); + default: + return CommandResult.fromString("Unknown error."); } } return CommandResult.fromString("Message not found"); |