Backend messages and field descriptions that reach the UI lose their em-dashes

Per the Microcopy rule: size and duration errors, the flavor errors, run
parameter errors, the Resources field descriptions, 401/409/400 details,
secret errors, the websocket node description and its on_connect setting.
The generated client follows.
This commit is contained in:
2026-10-27 17:52:55 +01:00
parent 4cb028de41
commit e37aa2bdd7
12 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ class SecretNotFound(KeyError):
self.name = name
def __str__(self) -> str:
return f"No secret named '{self.name}' — add it under Secrets."
return f"No secret named '{self.name}'. Add it under Secrets."
def fernet(key: str) -> Fernet:
@@ -60,7 +60,7 @@ class SecretsStore:
# flows coming up with silently missing credentials are far harder
# to diagnose than a node that reports why it did not load.
raise SecretsUnreadable(
f"Cannot decrypt {self._path} — it was written with a "
f"Cannot decrypt {self._path}. It was written with a "
"different SECRET_KEY. Re-encrypt it with "
"scripts/rotate_secret_key.py."
) from exc