Add special handling for the 'error' function.

Specifically instantiate the template for calls to 'error'.