diff --git a/vlib/x/templating/dtm/dynamic_template_manager.v b/vlib/x/templating/dtm/dynamic_template_manager.v index baba43be2cea59..2abfc1fd576772 100644 --- a/vlib/x/templating/dtm/dynamic_template_manager.v +++ b/vlib/x/templating/dtm/dynamic_template_manager.v @@ -899,7 +899,7 @@ fn (mut tm DynamicTemplateManager) parse_html_file(file_path string, tmpl_name s } mut re := regex.regex_opt('.*@include(?P[ \t\r\n]+)(?P[\'"])(?P.*)(?P[\'"])') or { tm.stop_cache_handler() - eprintln('${dtm.message_signature_error} with regular expression for template @inclusion in parse_html_file() function. Please check the syntax of the regex pattern.') + eprintln('${dtm.message_signature_error} with regular expression for template @inclusion in parse_html_file() function. Please check the syntax of the regex pattern : ${err.msg()}') return dtm.internat_server_error, '' } // Find all occurrences of the compiled regular expression within the HTML content. @@ -1006,7 +1006,7 @@ fn (mut tm DynamicTemplateManager) parse_html_file(file_path string, tmpl_name s html = html.replace_each(['\n', '', '\t', '', ' ', ' ']) mut r := regex.regex_opt(r'>(\s+)<') or { tm.stop_cache_handler() - eprintln('${dtm.message_signature_error} with regular expression for HTML light compression in parse_html_file() function. Please check the syntax of the regex pattern.') + eprintln('${dtm.message_signature_error} with regular expression for HTML light compression in parse_html_file() function. Please check the syntax of the regex pattern : ${err.msg()}') return dtm.internat_server_error, '' } html = r.replace(html, '><') @@ -1055,7 +1055,7 @@ fn (mut tm DynamicTemplateManager) clean_parsed_html(tmpl string, tmpl_name stri // Any unmatched placeholders found are then safely escaped mut r := regex.regex_opt(r'$([a-zA-Z_][a-zA-Z0-9_]*)') or { tm.stop_cache_handler() - eprintln('${dtm.message_signature_error} with regular expression for identifying placeholders in the HTML template in clean_parsed_html() function. Please check the syntax of the regex pattern.') + eprintln('${dtm.message_signature_error} with regular expression for identifying placeholders in the HTML template in clean_parsed_html() function. Please check the syntax of the regex pattern : ${err.msg()}') return dtm.internat_server_error } indices := r.find_all(html)