Better error log when the template result exists.