Extract errors into separate files.