[feature/migrations] Catch and display errors from the migrator

PHPBB3-11318