injectContentIntoFile throw error msg if regex fails.

- Issue #10.