Skip to content

Commit

Permalink
Ling errors fix part 2
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Hoang <[email protected]>
  • Loading branch information
Ian Hoang committed Jan 26, 2024
1 parent 8240d8f commit 328b3d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osbenchmark/workload/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,9 @@ def read(self, workload_name, workload_spec_file, mapping_dir):
except jinja2.exceptions.TemplateSyntaxError as e:
exception_message = f"Jinja2 Exception TemplateSyntaxError: {e}\n"
if 'endif' in exception_message:
exception_message += \
"There is an extra Jinja2 \"endif\" somewhere in workload's files. Please remove it so that the workload can be rendered and run.\n"
exception_message = exception_message + \
"There is an extra Jinja2 \"endif\" somewhere in workload's files. " + \
"Please remove it so that the workload can be rendered and run.\n"
if 'Missing end of raw directive' in exception_message:
exception_message += \
"In the workload files, \"{% raw -%}\" was provided but is missing it's associated \"{% endraw -%}\" tag.\n"
Expand Down

0 comments on commit 328b3d1

Please sign in to comment.