Minor amendment to the error logging