moves errors into own file