Skip to content

Commit 8675fd8

Browse files
committed
Fix: fixing cancel order message
1 parent 1f94483 commit 8675fd8

File tree

1 file changed

+1
-1
lines changed
  • lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/ecommerce

1 file changed

+1
-1
lines changed

lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/ecommerce/EcommerceSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public String placeOrder(String productId, int quantity) throws ProductNotFoundE
3030
public void cancelOrder(String orderId) throws OrderNotFoundException {
3131
Order order = orders.remove(orderId);
3232
if (order == null) {
33-
throw new OrderNotFoundException("Order with ID 1 " + orderId + " not found");
33+
throw new OrderNotFoundException("Order with ID " + orderId + " not found");
3434
}
3535
}
3636

0 commit comments

Comments
 (0)