Raise error message when template not found.