rwnx / pynonymizer

A universal tool for translating sensitive production database dumps into anonymized copies.
https://pypi.org/project/pynonymizer/
MIT License
101 stars 38 forks source link

Add better error messages for Unsupported fake_update types #137

Closed rwnx closed 5 months ago

rwnx commented 5 months ago

I dont have a good solution for finding the exact problem but i think this error message will make a lot more sense!

the error looks something like this:

❯ pynonymizer -i tests_integration/mysql/sakila.sql.gz -o out.sql -s tests_integration/mysql/sakila.yml
There was an error while parsing the strategyfile. Unknown fake type: name_email
 This happens when an fake_update column strategy is used with a generator that doesn't exist.
You can only use data types that Faker supports.
See https://github.com/rwnx/pynonymizer/blob/master/doc/strategyfiles.md#column-strategy-fake_update for usage information.
rwnx commented 5 months ago

This should help with #133.