Skip to content

Commit d04fdbc

Browse files
author
Tjaz Erzen
committed
fixup! Improve error messages for missing previous commits
1 parent d2c891c commit d04fdbc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

module_renderer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ def _ensure_module_folders_exist(self, module_name: str, first_render_frid: str)
5656

5757
if not os.path.exists(build_folder_path):
5858
raise MissingPreviousFunctionalitiesError(
59-
f"Cannot start rendering from functional spec {first_render_frid} for module '{module_name}' because the source code folder does not exist.\n\n"
59+
f"Cannot start rendering from functionality {first_render_frid} for module '{module_name}' because the source code folder does not exist.\n\n"
6060
f"To fix this, please render the module from the beginning by running:\n"
6161
f" codeplain {module_name}{plain_file.PLAIN_SOURCE_FILE_EXTENSION}"
6262
)
6363

6464
if not os.path.exists(conformance_tests_path):
6565
raise MissingPreviousFunctionalitiesError(
66-
f"Cannot start rendering from functional spec {first_render_frid} for module '{module_name}' because the conformance tests folder does not exist.\n\n"
66+
f"Cannot start rendering from functionality {first_render_frid} for module '{module_name}' because the conformance tests folder does not exist.\n\n"
6767
f"To fix this, please render the module from the beginning by running:\n"
6868
f" codeplain {module_name}{plain_file.PLAIN_SOURCE_FILE_EXTENSION}"
6969
)
@@ -94,17 +94,17 @@ def _ensure_frid_commit_exists(
9494
# Check in build folder
9595
if not git_utils.has_commit_for_frid(build_folder_path, frid, module_name):
9696
raise MissingPreviousFunctionalitiesError(
97-
f"Cannot start rendering from functional spec {first_render_frid} for module '{module_name}' because the implementation of the previous functional spec ({frid}) hasn't been completed yet.\n\n"
98-
f"To fix this, please render the missing functional spec first by running:\n"
97+
f"Cannot start rendering from functionality {first_render_frid} for module '{module_name}' because the implementation of the previous functionality ({frid}) hasn't been completed yet.\n\n"
98+
f"To fix this, please render the missing functionality ({frid}) first by running:\n"
9999
f" codeplain {module_name}{plain_file.PLAIN_SOURCE_FILE_EXTENSION} --render-from {frid}"
100100
)
101101

102102
# Check in conformance tests folder (only if conformance tests are enabled)
103103
if self.args.render_conformance_tests:
104104
if not git_utils.has_commit_for_frid(conformance_tests_path, frid, module_name):
105105
raise MissingPreviousFunctionalitiesError(
106-
f"Cannot start rendering from functional spec {first_render_frid} for module '{module_name}' because the conformance tests for the previous functional spec ({frid}) haven't been completed yet.\n\n"
107-
f"To fix this, please render the missing functional spec first by running:\n"
106+
f"Cannot start rendering from functionality {first_render_frid} for module '{module_name}' because the conformance tests for the previous functionality ({frid}) haven't been completed yet.\n\n"
107+
f"To fix this, please render the missing functionality ({frid}) first by running:\n"
108108
f" codeplain {module_name}{plain_file.PLAIN_SOURCE_FILE_EXTENSION} --render-from {frid}"
109109
)
110110

0 commit comments

Comments
 (0)