Skip to content

Commit 490595c

Browse files
committed
Use new copy for big red box
1 parent c68a621 commit 490595c

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

‎src/i18n/strings/en_EN.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Unexpected error preparing the app. See console for details.": "Unexpected error preparing the app. See console for details.",
3-
"This installation of Riot seems to have an invalid server configuration. If you are the administrator, please correct the error below": "This installation of Riot seems to have an invalid server configuration. If you are the administrator, please correct the error below",
3+
"Your Riot is misconfigured": "Your Riot is misconfigured",
44
"Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.": "Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.",
55
"Invalid configuration: no default server specified.": "Invalid configuration: no default server specified.",
66
"Riot Desktop on %(platformName)s": "Riot Desktop on %(platformName)s",

‎src/vector/index.js‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -368,20 +368,12 @@ async function loadApp() {
368368

369369
let errorMessage = err.translatedMessage
370370
|| _t("Unexpected error preparing the app. See console for details.");
371-
errorMessage = <span>
372-
{_t(
373-
"This installation of Riot seems to have an invalid server configuration. " +
374-
"If you are the administrator, please correct the error below",
375-
)}
376-
<br />
377-
<br />
378-
{errorMessage}
379-
</span>;
371+
errorMessage = <span>{errorMessage}</span>;
380372

381373
// Like the compatibility page, AWOOOOOGA at the user
382374
const GenericErrorPage = sdk.getComponent("structures.GenericErrorPage");
383375
window.matrixChat = ReactDOM.render(
384-
<GenericErrorPage message={errorMessage} />,
376+
<GenericErrorPage message={errorMessage} title={_t("Your Riot is misconfigured")} />,
385377
document.getElementById('matrixchat'),
386378
);
387379
});

0 commit comments

Comments
 (0)