Permission bug.  

Added permission checking for printing the problem source during an error.

This is a fix for Bug 2939