Skip to content

Commit

Permalink
Update PriceService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Imsyp authored Sep 21, 2024
1 parent b18dd70 commit e792ae7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public Price getProductDetails(String platform, String category_name, String pro
.map(parts -> Map.of(parts[0], Integer.parseInt(parts[1]))) // 날짜와 가격을 Map으로 변환
.collect(Collectors.toList()); // 모든 맵을 리스트로 수집
} catch (FileNotFoundException e) {
System.err.println("File not found: " + productPath);
System.err.println("File not found: " + productPath + ". Error: " + e.getMessage());
} catch (IOException e) {
System.err.println("Error reading file: " + productPath);
System.err.println("Error reading file: " + productPath + ". Error: " + e.getMessage());
}

Price priceInfo = Price.builder()
Expand Down Expand Up @@ -106,4 +106,4 @@ public Price getProductDetailsWithoutCategory(String platform, String product_id

return priceInfo;
}
}
}

0 comments on commit e792ae7

Please sign in to comment.