Can you also print the given file, e.g. like
`echo "The given tpl file $tooltpl_file does not exist." >&2`