Add line from `tmpl` with error to `err.message`