Skip to content

Commit

Permalink
fix: excel extractor password protected error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrugger committed Mar 12, 2024
1 parent b14159e commit adbab5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-countries-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@flatfile/plugin-xlsx-extractor': patch
---

This release improves the error messaging when extracting password-protected Excel files
2 changes: 2 additions & 0 deletions plugins/xlsx-extractor/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export async function parseBuffer(
throw new Error(
'File is too large to parse. Try converting this file to CSV.'
)
} else if (e.message === 'File is password-protected') {
throw new Error('File is password-protected')
}
}

Expand Down

0 comments on commit adbab5f

Please sign in to comment.