From ee1664e66746fac7f8870122af25f027cf80fe6d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Oct 2020 09:41:10 +0300 Subject: CommandsManager: handle recommendation error --- src/main/java/com/juick/CommandsManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java') 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"); -- cgit v1.2.3