Add error management to avoid blank page when there is no permission to
read file.