Skip to content

Commit 769890c

Browse files
[sitecore-jss] Error message related to timeout is not intuitive (#1197)
1 parent 0bf3aa6 commit 769890c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sitecore-jss/src/utils/timeout-promise.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class TimeoutPromise {
1515
get start(): Promise<unknown> {
1616
return new Promise((_, reject) => {
1717
this.timeoutId = setTimeout(() => {
18-
const abortError = new Error('Request timed out');
18+
const abortError = new Error(`Request timed out, timeout of ${this.timeout}ms is exceeded`);
1919
abortError.name = 'AbortError';
2020
reject(abortError);
2121
}, this.timeout);

0 commit comments

Comments
 (0)