Modify map.xml to reference a handler class that doesn't exist (e.g. <handler class="\Migration\Handler\Typo"/>).
Run the data migration bin/magento migrate:data -r config.xml
Expected result
Error before any data is copied, so you don't end up in a broken state.
Actual result
Error at the point it attempts to invoke that handler, this can be after a long period of time, leaving the DB in a half migrated state. Currently this leads to a very slow feedback loop to realise you've made a typo in a class name.
Preconditions
Steps to reproduce
<handler class="\Migration\Handler\Typo"/>
).bin/magento migrate:data -r config.xml
Expected result
Actual result
Additional notes