[task] fixed template resolving and don't print error message in template