Added error message wrapper to improve error message clarity.
Previously, you would for example get a message in Shotgun saying 
"Error matching optional argument". Now instead it will say
"Could not read templates configuration: Error matching optional
argument"