Skip to content

Commit 86f2829

Browse files
chrisbobbegnprice
authored andcommitted
RealmInputScreen: Full sentences, with periods, for user-facing errors
1 parent abfbd62 commit 86f2829

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/start/RealmInputScreen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export default function RealmInputScreen(props: Props): Node {
6161
const tryRealm = React.useCallback(async () => {
6262
const parsedRealm = urlFromInputValue(realmInputValue);
6363
if (!parsedRealm) {
64-
setError('Please enter a valid URL');
64+
setError('Please enter a valid URL.');
6565
return;
6666
}
6767
if (parsedRealm.username !== '') {
68-
setError('Please enter the server URL, not your email');
68+
setError('Please enter the server URL, not your email.');
6969
return;
7070
}
7171

@@ -77,7 +77,7 @@ export default function RealmInputScreen(props: Props): Node {
7777
Keyboard.dismiss();
7878
} catch (errorIllTyped) {
7979
const err: mixed = errorIllTyped; // https://github.com/facebook/flow/issues/2470
80-
setError('Cannot connect to server');
80+
setError('Cannot connect to server.');
8181
/* eslint-disable no-console */
8282
console.warn('RealmInputScreen: failed to connect to server:', err);
8383
// $FlowFixMe[incompatible-cast]: assuming caught exception was Error

static/translations/messages_en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@
122122
"Request timed out.": "Request timed out.",
123123
"Chat": "Chat",
124124
"Sign in with {method}": "Sign in with {method}",
125-
"Cannot connect to server": "Cannot connect to server",
126-
"Please enter a valid URL": "Please enter a valid URL",
127-
"Please enter the server URL, not your email": "Please enter the server URL, not your email",
125+
"Cannot connect to server.": "Cannot connect to server.",
126+
"Please enter a valid URL.": "Please enter a valid URL.",
127+
"Please enter the server URL, not your email.": "Please enter the server URL, not your email.",
128128
"Wrong email or password. Try again.": "Wrong email or password. Try again.",
129129
"Wrong username or password. Try again.": "Wrong username or password. Try again.",
130130
"Enter a valid email address": "Enter a valid email address",

0 commit comments

Comments
 (0)