summaryrefslogtreecommitdiff
path: root/ext/js/comm/api.js
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-05-28 15:47:00 -0400
committerGitHub <noreply@github.com>2024-05-28 19:47:00 +0000
commitdd1f195cd721948732abbbb2428999393844487e (patch)
tree66ab06c5b4a5cdd6b03cdaeeb0575d52af11708e /ext/js/comm/api.js
parent83966376d0a3ed107c75020f6e2adfa80fcfcb06 (diff)
Add note about refreshing page in api invoke error (#1004)24.5.28.0
Diffstat (limited to 'ext/js/comm/api.js')
-rw-r--r--ext/js/comm/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js
index b044a783..7a98feb1 100644
--- a/ext/js/comm/api.js
+++ b/ext/js/comm/api.js
@@ -395,7 +395,7 @@ export class API {
resolve(/** @type {import('api').ApiReturn<TAction>} */ (result));
}
} else {
- const message = response === null ? 'Unexpected null response' : `Unexpected response of type ${typeof response}`;
+ const message = response === null ? 'Unexpected null response. You may need to refresh the page.' : `Unexpected response of type ${typeof response}. You may need to refresh the page.`;
reject(new Error(`${message} (${JSON.stringify(data)})`));
}
});