We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bf3aa6 commit 769890cCopy full SHA for 769890c
packages/sitecore-jss/src/utils/timeout-promise.ts
@@ -15,7 +15,7 @@ export default class TimeoutPromise {
15
get start(): Promise<unknown> {
16
return new Promise((_, reject) => {
17
this.timeoutId = setTimeout(() => {
18
- const abortError = new Error('Request timed out');
+ const abortError = new Error(`Request timed out, timeout of ${this.timeout}ms is exceeded`);
19
abortError.name = 'AbortError';
20
reject(abortError);
21
}, this.timeout);
0 commit comments