error msg fix
This commit is contained in:
@@ -46,9 +46,18 @@ const PLATFORM_HOST =
|
||||
* Names the host rather than linking to it. A live link from one sign-in screen
|
||||
* to another reads as a redirect that failed, and this is not a failure — it is
|
||||
* the right answer to the wrong door.
|
||||
*
|
||||
* Both consoles say this the same way — "That is a X account. Sign in at Y." —
|
||||
* because a person only ever sees one of them and the pair should not read as
|
||||
* two different products. The earlier versions did: one opened "This is the
|
||||
* Nearle platform console…", the other closed with "…not here."
|
||||
*
|
||||
* It addresses what they typed rather than describing a category of account.
|
||||
* "Store admin accounts sign in at…" is true of accounts in general; "That is a
|
||||
* Store admin account" is about the one in the box in front of them.
|
||||
*/
|
||||
export function wrongConsoleMessage(role: ConsoleRole): string {
|
||||
return `${roleWord(role)} accounts sign in at ${PLATFORM_HOST}, not here.`;
|
||||
return `That is a ${roleWord(role)} account. Sign in at ${PLATFORM_HOST}.`;
|
||||
}
|
||||
|
||||
function roleWord(role: ConsoleRole): string {
|
||||
|
||||
Reference in New Issue
Block a user