Updating the the error reporter function so it writes not only to a file, but also prints to the console which is probably more useful.