Update template module

Now gives an appropriate error notice.