Adds permission denied error message.

I was trying to open my log file and I kept getting the "Error while opening the log file. Make sure it exists." message. It turns out I was just lacking permissions and needed to run with sudo. The patch adds a more detailed logging message for this scenario.