From dc1a19671482c6d71b8dedca9053ba75e4fb3302 Mon Sep 17 00:00:00 2001 From: godotg Date: Sat, 19 Oct 2024 10:57:16 +0800 Subject: [PATCH] chore: excel read exception log --- .../src/main/java/com/zfoo/storage/interpreter/ExcelReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/src/main/java/com/zfoo/storage/interpreter/ExcelReader.java b/storage/src/main/java/com/zfoo/storage/interpreter/ExcelReader.java index 24d26cdb4..b8bde552e 100644 --- a/storage/src/main/java/com/zfoo/storage/interpreter/ExcelReader.java +++ b/storage/src/main/java/com/zfoo/storage/interpreter/ExcelReader.java @@ -110,7 +110,7 @@ private static List getHeaders(Iterator iterator, String res private static Workbook createWorkbook(InputStream input, String fileName) { try { return WorkbookFactory.create(input); - } catch (IOException e) { + } catch (Exception e) { throw new RunException("Static excel resource [{}] is abnormal, and the file cannot be read", fileName, e); } }