From 206b1f988f35bb7b21f2a60cf83ac7247a1777e6 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Mon, 27 Feb 2023 14:06:49 +1100 Subject: [PATCH] Improve the communication error message --- TableturfBattleClient/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableturfBattleClient/src/app.ts b/TableturfBattleClient/src/app.ts index c7a636b..c82dba4 100644 --- a/TableturfBattleClient/src/app.ts +++ b/TableturfBattleClient/src/app.ts @@ -159,7 +159,7 @@ function onGameStateChange(game: any, playerData: PlayerData | null) { let errorDialogCallback: ((e: Event) => void) | null = null; function communicationError(message?: string, showButton?: boolean, callback?: (e: Event) => void) { preGameLoadingSection.hidden = true; - errorMessage.innerText = message ?? 'A communication error has occurred.'; + errorMessage.innerText = message ?? 'A communication error has occurred.\nPlease reload the page to rejoin.'; errorDialogCallback = callback ?? null; errorDialogForm.hidden = showButton != true; errorDialog.showModal();