From 1d4e9a2ade1719a30b5f978b54a1176b185871a9 Mon Sep 17 00:00:00 2001
From: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
Date: Tue, 28 May 2024 15:47:00 -0400
Subject: [PATCH] Add note about refreshing page in api invoke error
ZGQxZjE5NWNkNzIxOTQ4NzMyYWJiYmIyNDI4OTk5MzkzODQ0NDg3ZQo=
---
ext/js/comm/api.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js
index 927a9d2687..3cecfb67c5 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} */ (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)})`));
}
});