better error reporting when a template/controller is missing