Skip to content

Commit 14b4ad4

Browse files
fix few things
1 parent b01b72f commit 14b4ad4

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

src/main/java/com/amigoscode/product/ProductService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public UUID saveNewProductWithImage(String name, String description, String pric
110110
System.err.println("Failed to upload image for product " + id + ": " + e.getMessage());
111111
// Optionally, you could delete the product if image upload is critical
112112
// productRepository.deleteById(id);
113-
// throw new RuntimeException("Product created but image upload failed", e);
113+
throw new IllegalStateException("Product created but image upload failed", e);
114114
}
115115
}
116116

src/test/java/com/amigoscode/product/ProductServiceTestSimple.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)