diff --git a/src/main/java/seedu/cafectrl/parser/Parser.java b/src/main/java/seedu/cafectrl/parser/Parser.java index 1e5469b4b1..3e58e7d0ce 100644 --- a/src/main/java/seedu/cafectrl/parser/Parser.java +++ b/src/main/java/seedu/cafectrl/parser/Parser.java @@ -207,7 +207,7 @@ private static Command prepareEditPriceCommand(Menu menu, String arguments, Ui u return new IncorrectCommand(ErrorMessages.INVALID_DISH_INDEX, ui); } } catch (NumberFormatException e) { - logger.warning("Invalid dish index type!"); + logger.log(Level.WARNING, "Invalid dish index type!", e); return new IncorrectCommand(ErrorMessages.WRONG_DISH_INDEX_TYPE_FOR_EDIT_PRICE, ui); }