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. Claude-Session: https://claude.ai/code/session_01SSi5AvZ7pFmySK8zy3NPMh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user