Merge pull request #2999 from vlakoff/error-templates

Make the error templates path configurable