Report error correctly (template)