aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-19 09:41:10 +0300
committerGravatar Vitaly Takmazov2020-10-19 09:41:10 +0300
commitee1664e66746fac7f8870122af25f027cf80fe6d (patch)
treeae8d745b93f8eb4e4c8607eb4cffd48741f82d62 /src/main/java/com
parentf65f8a63587e0f42e1d8843b30ff15c8f74e3f86 (diff)
CommandsManager: handle recommendation error
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/CommandsManager.java2
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");