Browse Source

fix: colors in error snippets
commit_hash:8b9f2c334e0c931672ddb26b600e384d7df06fb1

vturov 4 months ago
parent
commit
3cfa1c202c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build/plugins/nots.py

+ 2 - 2
build/plugins/nots.py

@@ -828,7 +828,7 @@ def on_node_modules_configure(unit: NotsUnitType) -> None:
                     ymake.report_configure_error(
                         "Project is configured to use @yatool/prebuilder. \n"
                         + "Some packages in the pnpm-lock.yaml are misconfigured.\n"
-                        + "Run {COLORS.green}`ya tool nots update-lockfile`{COLORS.reset} to fix lockfile.\n"
+                        + f"Run {COLORS.green}`ya tool nots update-lockfile`{COLORS.reset} to fix lockfile.\n"
                         + "All packages with `requiresBuild:true` have to be marked with `hasAddons:true/false`.\n"
                         + "Misconfigured keys: \n"
                         + "  - "
@@ -843,7 +843,7 @@ def on_node_modules_configure(unit: NotsUnitType) -> None:
                     ymake.report_configure_error(
                         "Project is configured to use @yatool/prebuilder. \n"
                         + "Some packages are misconfigured.\n"
-                        + "Run {COLORS.green}`ya tool nots update-lockfile`{COLORS.reset} to fix pnpm-lock.yaml and package.json.\n"
+                        + f"Run {COLORS.green}`ya tool nots update-lockfile`{COLORS.reset} to fix pnpm-lock.yaml and package.json.\n"
                         + "Validation details: \n"
                         + "\n".join(validation_messages)
                     )