Fix broken error messages

This commit is contained in:
Yang Luo
2024-02-27 22:48:33 +08:00
parent b0d87f60ae
commit 4d9c81ef96
5 changed files with 5 additions and 5 deletions

View File

@ -454,7 +454,7 @@ class SyncerEditPage extends React.Component {
Setting.showMessage("success", i18next.t("syncer:Connect successfully"));
} else {
this.setState({testDbLoading: false});
Setting.showMessage("error", i18next.t("syncer:Failed to connect") + ": " + res.msg);
Setting.showMessage("error", `${i18next.t("syncer:Failed to connect")}: ${res.msg}`);
}
})
.catch(error => {