Extract error in separate files