Give failure one spelling

This commit is contained in:
2026-09-28 21:21:35 +02:00
parent 750c417c2d
commit 0fc6afd1e7
10 changed files with 22 additions and 26 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ def project_model(name, paths):
if isinstance(models, Stop):
return models
if failure := replace_json(saved, {**models, name: chosen}, indent="\t", sort_keys=True):
return Stop(1, f"could not save the model in {saved}: {failure.strerror}")
return Stop(1, f"could not save the model in {saved}: {failure.reason}")
print(f"{name} runs on {chosen}", file=sys.stderr)
return chosen