fix approved file with new message when exception is raised