Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extractPack should throw an error when no pack data is found #57

Open
ryanwalder opened this issue Nov 7, 2024 · 0 comments
Open

extractPack should throw an error when no pack data is found #57

ryanwalder opened this issue Nov 7, 2024 · 0 comments

Comments

@ryanwalder
Copy link
Contributor

ryanwalder commented Nov 7, 2024

When passing a src directory that does not contain valid LevelDB data extractPack should throw an error.

Example:

import { compilePack, extractPack } from "@foundryvtt/foundryvtt-cli";

extractPack("path/to/dir/without/leveldb/data", "output")

This does not throw an error as you would expect but will create the output directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant