use same error string as template.pm does