Skip to content

Commit a6ec3c5

Browse files
authored
Merge pull request #1303 from mathjax/update/retry
Make the retry error message more descriptive
2 parents f26bbf7 + 8f732da commit a6ec3c5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ts/util/Retries.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ export function handleRetriesFor(code: () => any): Promise<any> {
113113
* actions will continue
114114
*/
115115
export function retryAfter(promise: Promise<any>) {
116-
const err = new Error('MathJax retry') as RetryError;
116+
const err = new Error(
117+
'MathJax retry -- an asynchronous action is required; ' +
118+
'try using one of the promise-based functions and await its resolution.'
119+
) as RetryError;
117120
err.retry = promise;
118121
throw err;
119122
}

0 commit comments

Comments
 (0)