Throwing proper error for unknown template call.